diff options
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 1279aa822..aa62dd4ee 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1440,9 +1440,6 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int else tbl = bl; - if (tbl != src && !battle_check_range(src, tbl, skill_get_range2(src, skill, skilllv))) - continue; //Autoskills DO check for target-src range. [Skotlex] - rate = skill_get_inf(skill); switch (skill_get_casttype(skill)) { case CAST_GROUND: skill_castend_pos2(src, tbl->x, tbl->y, skill, skilllv, tick, 0); @@ -1615,9 +1612,6 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list * else tbl = src; - if (tbl != bl && !battle_check_range(bl, tbl, skill_get_range2(bl, skillid, skilllv))) - continue; //Autoskills DO check for target-src range. [Skotlex] - switch (skill_get_casttype(skillid)) { case CAST_GROUND: skill_castend_pos2(bl, tbl->x, tbl->y, skillid, skilllv, tick, 0); @@ -7964,7 +7958,7 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t nullpo_retr(0, sd); - if (lv <= 0) return 0; + if (lv <= 0 || sd->chatID) return 0; if( battle_config.gm_skilluncond && pc_isGM(sd)>= battle_config.gm_skilluncond && |