summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-04 00:19:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-04 00:19:49 +0000
commit20f26b76bf58dd1f23d13cb2606703f01e549896 (patch)
tree2f813347ede84bdbb2bdef6e7ac037f4bced5e11 /src/map/mob.c
parent7a6dc99cb063cfa34618e3a1e9c73716b3612fb6 (diff)
downloadhercules-20f26b76bf58dd1f23d13cb2606703f01e549896.tar.gz
hercules-20f26b76bf58dd1f23d13cb2606703f01e549896.tar.bz2
hercules-20f26b76bf58dd1f23d13cb2606703f01e549896.tar.xz
hercules-20f26b76bf58dd1f23d13cb2606703f01e549896.zip
- Pair of almost insignificant changes in mob.c (removed a unneeded next_walktime set on loot-lock and usage of range2 rather than 3 for min_chase when locking an "attacked by" target)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6464 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 433787b8d..e56163ce9 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -870,7 +870,6 @@ static int mob_ai_sub_hard_lootsearch(struct block_list *bl,va_list ap)
(*target) = bl;
md->target_id=bl->id;
md->min_chase=md->db->range3;
- md->next_walktime = gettick() + 500; //So that the mob may go after the item inmediately.
}
return 0;
}
@@ -1131,7 +1130,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
md->target_id = md->attacked_id; // set target
md->state.aggressive = 0; //Retaliating.
md->attacked_count = 0;
- md->min_chase = dist+md->db->range2;
+ md->min_chase = dist+md->db->range3;
if(md->min_chase>MAX_MINCHASE)
md->min_chase=MAX_MINCHASE;
tbl = abl; //Set the new target