summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-30 15:35:44 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-30 15:35:44 +0000
commitd427fe23e39d1384c03c0d54fa4fe34e46eb80b6 (patch)
tree78c4ca569997d5a80acc2e355edc602eb32e8e5b /src
parent8990332f8e4af8ac589b22ec6b06a62cef12209b (diff)
downloadhercules-d427fe23e39d1384c03c0d54fa4fe34e46eb80b6.tar.gz
hercules-d427fe23e39d1384c03c0d54fa4fe34e46eb80b6.tar.bz2
hercules-d427fe23e39d1384c03c0d54fa4fe34e46eb80b6.tar.xz
hercules-d427fe23e39d1384c03c0d54fa4fe34e46eb80b6.zip
Fixed a bug with the client-called walk+skill chain,
When you trying to cast a skill on a target while you are out of the skill range you use, BEFORE: you'd walk to the target until you reach the skill range NOW: you move to the target until you reach the skill range and automatically use it (official behavior) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15331 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 14c90453c..06d4dc291 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1158,7 +1158,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh
if( !battle_check_range(battle_get_master(src), target, skill_get_range2(src, skill_num, skill_lv) + 1) )
return 0; // Aegis calc remove trap based on Master position, ignoring mercenary O.O
}
- else if( !battle_check_range(src, target, skill_get_range2(src, skill_num,skill_lv) + (skill_num == RG_CLOSECONFINE?0:1)) )
+ else if( !battle_check_range(src, target, skill_get_range2(src, skill_num,skill_lv) + (skill_num == RG_CLOSECONFINE?0:2)) )
return 0; // Arrow-path check failed.
}