diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-06 16:16:52 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-06 16:16:52 +0000 |
commit | aef2fafca619d7832f454e86ef9c37551a12e1c6 (patch) | |
tree | a0ed92626e6be3394252fd6ff58e648e9f31ffdb | |
parent | b99229b3ef29b8fe52438bef76313558ac68df6f (diff) | |
download | hercules-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
-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.
|