summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index e983d8853..bfc6cd4cb 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,8 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EV
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/02/21
+ * Fixed the range-check of targetted skills (was evaluating the range as 0
+ always) [Skotlex]
* Now you should receive the party/guild mini-dots on map-load without the
need of waiting for others to "move" for you to receive the update (fixes
dead characters never showing up on the map) [Skotlex]
diff --git a/src/map/skill.c b/src/map/skill.c
index e07e24917..a4559e0c6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8492,7 +8492,7 @@ int skill_use_id (struct map_session_data *sd, int target_id, int skill_num, int
if(sd->bl.id != target_id){ // Don't check range for self skills, this is useless...
if(!battle_check_range(&sd->bl,bl,skill_get_range2(&sd->bl, skill_num,skill_lv)
- +(skill_num==RG_CLOSECONFINE)?0:1)) //Close confine is expoitable thanks to this extra range "feature" of the client. [Skotlex]
+ +(skill_num==RG_CLOSECONFINE?0:1))) //Close confine is expoitable thanks to this extra range "feature" of the client. [Skotlex]
return 0;
}