diff options
author | shennetsind <ind@henn.et> | 2013-04-02 19:21:01 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-02 19:21:01 -0300 |
commit | e6320b892516ba49af88bb4cc616952fa7cab6cd (patch) | |
tree | 3320f24c1bf2654ad3eee3d043691aed8d41a3f2 /src/map/skill.c | |
parent | 1ee2b136cce11a1eda33a5165cb087370b52d563 (diff) | |
download | hercules-e6320b892516ba49af88bb4cc616952fa7cab6cd.tar.gz hercules-e6320b892516ba49af88bb4cc616952fa7cab6cd.tar.bz2 hercules-e6320b892516ba49af88bb4cc616952fa7cab6cd.tar.xz hercules-e6320b892516ba49af88bb4cc616952fa7cab6cd.zip |
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 <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 0 insertions, 8 deletions
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) |