summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-06 16:16:52 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-06 16:16:52 +0000
commitaef2fafca619d7832f454e86ef9c37551a12e1c6 (patch)
treea0ed92626e6be3394252fd6ff58e648e9f31ffdb /src
parentb99229b3ef29b8fe52438bef76313558ac68df6f (diff)
downloadhercules-aef2fafca619d7832f454e86ef9c37551a12e1c6.tar.gz
hercules-aef2fafca619d7832f454e86ef9c37551a12e1c6.tar.bz2
hercules-aef2fafca619d7832f454e86ef9c37551a12e1c6.tar.xz
hercules-aef2fafca619d7832f454e86ef9c37551a12e1c6.zip
- Changed the random warping of mobs with no players from mob_spawn to unit_warp, which prevents MSC_SPAWN from being retriggered for already spawned mobs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5928 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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 41a68180e..4bf65cb32 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1470,7 +1470,7 @@ static int mob_ai_sub_lazy(DBKey key,void * data,va_list app)
else if( rand()%1000<MOB_LAZYWARPPERC
&& (md->spawn && !md->spawn->x && !md->spawn->y)
&& !md->target_id && !(mode&MD_BOSS))
- mob_spawn(md);
+ unit_warp(&md->bl,-1,-1,-1,0);
}else{
// Since PC is not even in the same map, suitable processing is carried out even if it takes.