summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-22 03:11:04 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-22 03:11:04 +0000
commitba64401d27d855d33280015e3bea523aeda0af37 (patch)
tree1d0b4692072393149aa5afb38985c2b87f63379e /src/map/skill.c
parent44f70b76b2048b175e7454014c65a4f455850267 (diff)
downloadhercules-ba64401d27d855d33280015e3bea523aeda0af37.tar.gz
hercules-ba64401d27d855d33280015e3bea523aeda0af37.tar.bz2
hercules-ba64401d27d855d33280015e3bea523aeda0af37.tar.xz
hercules-ba64401d27d855d33280015e3bea523aeda0af37.zip
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
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 &&