diff options
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index bb2ce41c7..fedde3ad0 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -4503,8 +4503,15 @@ int atcommand_night( night_flag = 1; // 0=day, 1=night [Yor] for(i = 0; i < fd_max; i++) { if (session[i] && (pl_sd = session[i]->session_data) && pl_sd->state.auth && !map[sd->bl.m].flag.indoors) { - pl_sd->opt2 |= STATE_BLIND; - clif_changeoption(&pl_sd->bl); + //pl_sd->opt2 |= STATE_BLIND; + //clif_changeoption(&pl_sd->bl); + if (battle_config.night_darkness_level > 0) + clif_specialeffect(&pl_sd->bl, 474 + battle_config.night_darkness_level, 0); + else { + //clif_specialeffect(&pl_sd->bl, 483, 0); // default darkness level + pl_sd->opt2 |= STATE_BLIND; + clif_changeoption(&pl_sd->bl); + } clif_displaymessage(pl_sd->fd, msg_table[59]); // Night has fallen. } } |