summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-15 21:33:36 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-15 21:33:36 +0000
commit9aec6f94e0c2da439ad9ea1133bc2e38fe385563 (patch)
tree37fd6cedf4dde54c023a1232707b6e62800b2e13 /src/map/unit.c
parent6fdd12e9c652fd800ad40d91f5f32553814aa65e (diff)
downloadhercules-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/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 87d10d160..c6c8a6dc1 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -197,7 +197,7 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data)
if(battle_config.mob_warp&1 && map_getcell(bl->m,x,y,CELL_CHKNPC) &&
npc_touch_areanpc2(bl)) // Enable mobs to step on warps. [Skotlex]
return 0;
- if (md->min_chase > md->db->range2) md->min_chase--;
+ if (md->min_chase > md->db->range3) md->min_chase--;
//Walk skills are triggered regardless of target due to the idle-walk mob state.
//But avoid triggering on stop-walk calls.
if(tid != -1 &&