diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-21 23:59:15 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-21 23:59:15 +0000 |
commit | 9cc1f2c96fc0cfb095e4dc76dc6b5fb35ea8173a (patch) | |
tree | 7523c138f613f2e04248d73ce9f412b9968ab873 | |
parent | 86cc7f531d2b3da32508cb6fe101228d2398d0e3 (diff) | |
download | hercules-9cc1f2c96fc0cfb095e4dc76dc6b5fb35ea8173a.tar.gz hercules-9cc1f2c96fc0cfb095e4dc76dc6b5fb35ea8173a.tar.bz2 hercules-9cc1f2c96fc0cfb095e4dc76dc6b5fb35ea8173a.tar.xz hercules-9cc1f2c96fc0cfb095e4dc76dc6b5fb35ea8173a.zip |
- Fixed all skills getting range 0.... (except close confine which got range 1 :X)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5362 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/skill.c | 2 |
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;
}
|