diff options
-rw-r--r-- | Changelog-Trunk.txt | 3 | ||||
-rw-r--r-- | src/map/mob.c | 2 |
2 files changed, 4 insertions, 1 deletions
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()%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.
|