From ba64401d27d855d33280015e3bea523aeda0af37 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 22 Apr 2007 03:11:04 +0000 Subject: - Corrected crash if itemskill is used without an attached player. - Removed range checks for autospells as per UltraMage Aegis tests. - Added chatID skill fail check to skill_check_condition - Corrected @refresh not re-displaying your spirit spheres nor re-setting your cloth dye. - Now the "number of attackers" in mob_dead is counted only from online characters on the same map. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10307 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/map/skill.c') 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 && -- cgit v1.2.3-70-g09d2