summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIbrahem Hossam <ibrahem.h.basyone@gmail.com>2017-02-19 09:29:58 +0200
committerGitHub <noreply@github.com>2017-02-19 09:29:58 +0200
commitfb4df10d2108dd2d8e4cd63fff5a64451d16dfcd (patch)
treea9cade0b056f054713ee0824fdcfaa3a983fcba9 /src
parent4aff6f75a7c39e2a2f30608ce9f45392aea7056c (diff)
parent3e5401afef0a27da3ba2be1970c940e2ba2b0042 (diff)
downloadhercules-fb4df10d2108dd2d8e4cd63fff5a64451d16dfcd.tar.gz
hercules-fb4df10d2108dd2d8e4cd63fff5a64451d16dfcd.tar.bz2
hercules-fb4df10d2108dd2d8e4cd63fff5a64451d16dfcd.tar.xz
hercules-fb4df10d2108dd2d8e4cd63fff5a64451d16dfcd.zip
Merge pull request #1457 from Ridley8819/unit
Fixes Range Exploit
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 739a369a6..feb11f89e 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1461,7 +1461,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
} else if( src->type == BL_MER && skill_id == MA_REMOVETRAP ) {
if( !battle->check_range(battle->get_master(src), target, range + 1) )
return 0; // Aegis calc remove trap based on Master position, ignoring mercenary O.O
- } else if( !battle->check_range(src, target, range + (skill_id == RG_CLOSECONFINE?0:2)) ) {
+ } else if (!battle->check_range(src, target, range)) {
return 0; // Arrow-path check failed.
}
}