From aef2fafca619d7832f454e86ef9c37551a12e1c6 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 6 Apr 2006 16:16:52 +0000 Subject: - 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 --- Changelog-Trunk.txt | 3 +++ src/map/mob.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 260aaf859..730c99e0c 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/04/06 + * Changed the random warping of mobs with no players from mob_spawn to + unit_warp, which prevents MSC_SPAWN skills from being retriggered for + already spawned mobs. [Skotlex] * Modified @allstats to prevent negative/overflow issues. [Skotlex] 2006/04/05 * Fixed undisguising not clearing the mob sprite for the disguised 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()%1000spawn && !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. -- cgit v1.2.3-70-g09d2