From a2c41ae05a34029adf70f7e11f47c4e4ba56566b Mon Sep 17 00:00:00 2001 From: celest Date: Tue, 16 Nov 2004 04:20:55 +0000 Subject: Added 'BaseJob' const and 'indoors' mapflag git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@209 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/skill.c') 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) -- cgit v1.2.3-70-g09d2