summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-03 05:57:20 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-03 05:57:20 +0000
commitfedbdb48e0fd0fc340884b15c3ba31f6168c85e8 (patch)
treeed1c2c12a48cf9390d83095cca5ee05335625fb6 /src
parent4983c4ab7901b1b4c518355b47ec32520388a287 (diff)
downloadhercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.tar.gz
hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.tar.bz2
hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.tar.xz
hercules-fedbdb48e0fd0fc340884b15c3ba31f6168c85e8.zip
Fixed a bug that was causing monsters not to move towards the target
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@441 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/battle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index e90eebbad..95ac787a9 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -4957,9 +4957,10 @@ int battle_check_range(struct block_list *src,struct block_list *bl,int range)
if( range>0 && range < arange ) {// 遠すぎる
// be lenient if the skill was cast before we have moved to the correct position [Celest]
- if (src->type == BL_PC && ((struct map_session_data *)bl)->walktimer != -1 &&
- !((arange-=battle_config.skill_range_leniency)<=range))
- return 0;
+ if (src->type != BL_PC ||
+ (src->type == BL_PC && ((struct map_session_data *)bl)->walktimer != -1 &&
+ !((arange-=battle_config.skill_range_leniency)<=range)))
+ return 0;
}
if( arange<2 ) // 同じマスか隣接