summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-06-09 02:41:52 -0300
committerEuphy <euphy@rathena.org>2013-06-15 15:48:55 -0400
commita5eedb9e2a7e5193be645509a93b58f4ff4900e0 (patch)
tree1ee8e4d9b5c2245d479b2e489911db9a990c7ff1
parent0ea6d48104e66567468af84ce281df66fa97f03d (diff)
downloadhercules-a5eedb9e2a7e5193be645509a93b58f4ff4900e0.tar.gz
hercules-a5eedb9e2a7e5193be645509a93b58f4ff4900e0.tar.bz2
hercules-a5eedb9e2a7e5193be645509a93b58f4ff4900e0.tar.xz
hercules-a5eedb9e2a7e5193be645509a93b58f4ff4900e0.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>
-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++) {