summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-16 04:20:55 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-16 04:20:55 +0000
commita2c41ae05a34029adf70f7e11f47c4e4ba56566b (patch)
treeead4aace769121712737e5d20aa109f66245c828 /src/map/skill.c
parentec576ee55559c2375d240b16d07ca860acdeb8bd (diff)
downloadhercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.tar.gz
hercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.tar.bz2
hercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.tar.xz
hercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.zip
Added 'BaseJob' const and 'indoors' mapflag
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@209 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 7eb992ed6..26aee1222 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8009,7 +8009,7 @@ 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) { // by [Yor]
+ if (night_flag == 1 && (*opt2 & STATE_BLIND) == 0 && bl->type == BL_PC && !map[bl->m].flag.indoors) { // by [Yor]
*opt2 |= STATE_BLIND;
opt_flag = 1;
}
@@ -9230,7 +9230,7 @@ int skill_status_change_clear(struct block_list *bl, int type)
*opt3 = 0;
*option &= OPTION_MASK;
- if (night_flag == 1 && type == BL_PC) // by [Yor]
+ if (night_flag == 1 && type == BL_PC && !map[bl->m].flag.indoors) // by [Yor]
*opt2 |= STATE_BLIND;
if(!type || type&2)