summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-09-20 17:44:03 -0300
committershennetsind <ind@henn.et>2014-09-20 17:44:03 -0300
commita9cbfd803a82464e9d715f806409526cedb25537 (patch)
treee5e6b6fbcc2bdca7d12f45a962404faf49d14f7d /src/map/status.c
parent36ac07469df414237e5a4f4f347087d24de82169 (diff)
downloadhercules-a9cbfd803a82464e9d715f806409526cedb25537.tar.gz
hercules-a9cbfd803a82464e9d715f806409526cedb25537.tar.bz2
hercules-a9cbfd803a82464e9d715f806409526cedb25537.tar.xz
hercules-a9cbfd803a82464e9d715f806409526cedb25537.zip
Fixed Bug 8260
Fixed issue with map zone inheritance failing to inherit subtype, and fixed MOB_BOSS subtype criteria in order to separate from non-MOB_BOSS. Special Thanks to Angelmelody, Michieru. http://hercules.ws/board/tracker/issue-8260-the-uint-type-of-map-zone-system-was-not-working-properly/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 746ca51e2..a8a0f066d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1601,8 +1601,13 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, uin
if( src->type == BL_PC )
clif->msg((TBL_PC*)src, SKILL_CANT_USE_AREA); // This skill cannot be used within this area
else if( src->type == BL_MOB && map->list[src->m].zone->disabled_skills[i]->subtype != MZS_NONE ) {
- if( (st->mode&MD_BOSS) && !(map->list[src->m].zone->disabled_skills[i]->subtype&MZS_BOSS) )
- break;
+ if( st->mode&MD_BOSS ) { /** is boss **/
+ if( !( map->list[src->m].zone->disabled_skills[i]->subtype&MZS_BOSS ) )
+ break;
+ } else { /** is not boss **/
+ if( map->list[src->m].zone->disabled_skills[i]->subtype&MZS_BOSS )
+ break;
+ }
}
return 0;
}