Bläddra i källkod

- 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://svn.code.sf.net/p/rathena/svn/trunk@5928 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 år sedan
förälder
incheckning
85ac518297
2 ändrade filer med 4 tillägg och 1 borttagningar
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/mob.c

+ 3 - 0
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

+ 1 - 1
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.