summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-06-09 02:41:52 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-06-09 02:41:54 -0300
commit399476eb93a829a8c926cc354f147d236b478d1d (patch)
tree367880fcb1bbad04a23b5badc3aa1df60fd3bf79 /src
parent75edbe75fb52e3c481fb2db2ce64421a185e820a (diff)
downloadhercules-399476eb93a829a8c926cc354f147d236b478d1d.tar.gz
hercules-399476eb93a829a8c926cc354f147d236b478d1d.tar.bz2
hercules-399476eb93a829a8c926cc354f147d236b478d1d.tar.xz
hercules-399476eb93a829a8c926cc354f147d236b478d1d.zip
Fixed #7317
Items that cast skill will work even if the casted skill is on disabled_skills at map_zone_db. To block, use disabled_items. Thanks to kyeme for reporting! http://hercules.ws/board/tracker/issue-7317-disabled-skills/ Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index d31333e8c..9719decf0 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1516,7 +1516,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, uin
if( skill_id ) {
- if( src ) {
+ if( src && !((TBL_PC*)src)->skillitem) { // Items that cast skills using 'itemskill' will not be handled by map_zone_db.
int i;
for(i = 0; i < map[src->m].zone->disabled_skills_count; i++) {