From f30f40066e831e4cc0c4326f96d9358554c51791 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 11 Apr 2006 16:57:37 +0000 Subject: - Modified battle_check_range to do a path-check on distances less than 2 (rather than 3) to avoid being able to hit through walls. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5988 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/map/battle.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index d20071a0e..13296f684 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/04/11 + * Modified battle_check_range to do a path-check on distances less than 2 + (rather than 3) to avoid being able to hit through walls. [Skotlex] * Modified unit_walktoxy_sub to always move at least one cell when a large chaserange is specified to prevent possible infinite loops where attack_timer says you are not within range, but unit_walktoxy says you are. diff --git a/src/map/battle.c b/src/map/battle.c index 0a3d528c2..fdbcffa07 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3524,7 +3524,7 @@ int battle_check_range(struct block_list *src,struct block_list *bl,int range) if (!check_distance_bl(src, bl, range)) return 0; - if(distance_bl(src, bl) < 3) //No need for path checking. + if(distance_bl(src, bl) < 2) //No need for path checking. return 1; // ?áŠQ•¨”»’è -- cgit v1.2.3-70-g09d2