diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-15 21:33:36 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-15 21:33:36 +0000 |
commit | 9aec6f94e0c2da439ad9ea1133bc2e38fe385563 (patch) | |
tree | 37fd6cedf4dde54c023a1232707b6e62800b2e13 /src/map/mob.c | |
parent | 6fdd12e9c652fd800ad40d91f5f32553814aa65e (diff) | |
download | hercules-9aec6f94e0c2da439ad9ea1133bc2e38fe385563.tar.gz hercules-9aec6f94e0c2da439ad9ea1133bc2e38fe385563.tar.bz2 hercules-9aec6f94e0c2da439ad9ea1133bc2e38fe385563.tar.xz hercules-9aec6f94e0c2da439ad9ea1133bc2e38fe385563.zip |
- Now mobs won't do a distance check to lose their target on every ai iteration, but only when they finish walking (unless you set monster_ai&1)
- The chase distance before a mob gives up following a player has been increased from view-size (range2) to min-chase (range3).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8773 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 6742c204a..930f01a9d 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1081,7 +1081,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap) tbl = map_id2bl(md->target_id); if (!tbl || tbl->m != md->bl.m || (md->ud.attacktimer == -1 && !status_check_skilluse(&md->bl, tbl, 0, 0)) || - (md->ud.walktimer != -1 && !check_distance_bl(&md->bl, tbl, md->min_chase)) || + (md->ud.walktimer != -1 && !(battle_config.mob_ai&1) && !check_distance_bl(&md->bl, tbl, md->min_chase)) || ( tbl->type == BL_PC && !(mode&MD_BOSS) && ((TBL_PC*)tbl)->state.gangsterparadise |