- 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://svn.code.sf.net/p/rathena/svn/trunk@5988 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-04-11 16:57:37 +00:00
parent d3db62a041
commit 5e1c234759
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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•¨”»è