diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-20 11:42:58 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-20 11:42:58 +0000 |
commit | 9d02f1a1b111f882ca824583b1380a96fdeb556d (patch) | |
tree | 5fab218d6a29a109d9141a022873ac40eabd0c10 /src/map/skill.c | |
parent | a4756bb8123d607ed5c4b854653d2ddab814f555 (diff) | |
download | hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.gz hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.bz2 hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.xz hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.zip |
Added night_darkness_level
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@267 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a9fa326de..58b74f149 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8094,7 +8094,8 @@ int skill_status_change_end(struct block_list* bl, int type, int tid) break; } - if (night_flag == 1 && (*opt2 & STATE_BLIND) == 0 && bl->type == BL_PC && !map[bl->m].flag.indoors) { // by [Yor] + if (night_flag == 1 && (*opt2 & STATE_BLIND) == 0 && bl->type == BL_PC && // by [Yor] + !map[bl->m].flag.indoors && battle_config.night_darkness_level <= 0) { // [celest] *opt2 |= STATE_BLIND; opt_flag = 1; } @@ -9369,7 +9370,8 @@ int skill_status_change_clear(struct block_list *bl, int type) *opt3 = 0; *option &= OPTION_MASK; - if (night_flag == 1 && type == BL_PC && !map[bl->m].flag.indoors) // by [Yor] + if (night_flag == 1 && type == BL_PC && !map[bl->m].flag.indoors && // by [Yor] + !map[bl->m].flag.indoors && battle_config.night_darkness_level <= 0) // [celest] *opt2 |= STATE_BLIND; if(!type || type&2) |