From 399476eb93a829a8c926cc354f147d236b478d1d Mon Sep 17 00:00:00 2001 From: Matheus Macabu Date: Sun, 9 Jun 2013 02:41:52 -0300 Subject: 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 --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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++) { -- cgit v1.2.3-70-g09d2