From e6320b892516ba49af88bb4cc616952fa7cab6cd Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 2 Apr 2013 19:21:01 -0300 Subject: Updated Map Zone Database Introducing unit-type-based skill restrictions, details in the link http://hercules.ws/board/topic/302-introducing-hercules-map-zone-database/?p=2227 Special Thanks to lighta and Muad_Dib Signed-off-by: shennetsind --- src/map/skill.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 77c5f99a2..ca3b28656 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -477,7 +477,6 @@ int can_copy (struct map_session_data *sd, uint16 skill_id, struct block_list* b int skillnotok (uint16 skill_id, struct map_session_data *sd) { int16 idx,m; - int i; nullpo_retr (1, sd); m = sd->bl.m; idx = skill->get_index(skill_id); @@ -513,13 +512,6 @@ int skillnotok (uint16 skill_id, struct map_session_data *sd) if( sd->skillitem == skill_id ) return 0; - for(i = 0; i < map[m].zone->disabled_skills_count; i++) { - if( skill_id == map[m].zone->disabled_skills[i] ) { - clif->msg(sd, SKILL_CANT_USE_AREA); // This skill cannot be used within this area - return 1; - } - } - if( sd->sc.option&OPTION_MOUNTING ) return 1;//You can't use skills while in the new mounts (The client doesn't let you, this is to make cheat-safe) -- cgit v1.2.3-60-g2f50