diff options
author | Ridley <ridley8819@gmail.com> | 2016-10-03 15:36:47 +0200 |
---|---|---|
committer | Ridley <ridley8819@gmail.com> | 2016-10-03 15:36:47 +0200 |
commit | 3e5401afef0a27da3ba2be1970c940e2ba2b0042 (patch) | |
tree | b2f7c4c25aedabae2481fc3bf70285371f9b4a3d /src/map/unit.c | |
parent | 2782e41ed7be8f5331b91165b0f6083bae8f8029 (diff) | |
download | hercules-3e5401afef0a27da3ba2be1970c940e2ba2b0042.tar.gz hercules-3e5401afef0a27da3ba2be1970c940e2ba2b0042.tar.bz2 hercules-3e5401afef0a27da3ba2be1970c940e2ba2b0042.tar.xz hercules-3e5401afef0a27da3ba2be1970c940e2ba2b0042.zip |
Fixes Range Exploit
issue#841
Original Commit by Playtester on rAthena, https://github.com/rathena/rathena/commit/6f74f67da060a063183e1147dfc893c9454af853
* Players will no longer get +2 range server-sided when using a target spell
* This will prevent players from modifying the client to get extra range
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 5364a9547..86fb6770c 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1460,7 +1460,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. } } |