summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-26 15:02:52 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-26 15:02:52 +0000
commita0a93331e305e62a8913b93d3f56eea6ef51981d (patch)
tree8c9bac80ee64d7d70ab39754d5c2c8d81c8228e8 /src/map/mob.c
parent025ab348ab87758a9214380fd4fd3feaefa902b8 (diff)
downloadhercules-a0a93331e305e62a8913b93d3f56eea6ef51981d.tar.gz
hercules-a0a93331e305e62a8913b93d3f56eea6ef51981d.tar.bz2
hercules-a0a93331e305e62a8913b93d3f56eea6ef51981d.tar.xz
hercules-a0a93331e305e62a8913b93d3f56eea6ef51981d.zip
- Small adjustment on the mob_ai code which could fix mobs not chasing you if you hit them from the maximum possible diagonal distance.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8490 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 1fba16d6e..97e90efda 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1116,7 +1116,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
(dist = distance_bl(&md->bl, abl)) >= MAX_MINCHASE ||
battle_check_target(bl, abl, BCT_ENEMY) <= 0 ||
(battle_config.mob_ai&2 && !status_check_skilluse(bl, abl, 0, 0)) ||
- !mob_can_reach(md, abl, dist+2, MSS_RUSH) ||
+ !mob_can_reach(md, abl, dist+md->db->range3, MSS_RUSH) ||
( //Gangster Paradise check
abl->type == BL_PC && !(mode&MD_BOSS) &&
((TBL_PC*)abl)->state.gangsterparadise