All pastes #26789 Raw Edit

Stuff

public text v1 · immutable
#26789 ·published 2005-10-26 23:04 UTC
rendered paste body
Index: L2Spawn.java
===================================================================
--- L2Spawn.java	(revision 1386)
+++ L2Spawn.java	(working copy)
@@ -43,8 +43,8 @@
 public class L2Spawn
 {
     protected static Logger _log = Logger.getLogger(L2Spawn.class.getName());
-    
-    /** The link on the L2NpcTemplate object containing generic and static properties of this spawn (ex : RewardExp, RewardSP, AggroRange...) */
+	
+	/** The link on the L2NpcTemplate object containing generic and static properties of this spawn (ex : RewardExp, RewardSP, AggroRange...) */
 	private L2NpcTemplate _template;
 	
 	/** The Identifier of this spawn in the spawn table */
@@ -519,7 +519,13 @@
         
         // Set the HP and MP of the L2NpcInstance to the max
         mob.setCurrentHpMp(mob.getMaxHp(), mob.getMaxMp());
-        
+
+        // Clear mob spoil,seed
+        if(mob instanceof L2Attackable)
+        {
+            ((L2Attackable)mob).resetSpoil();
+        }
+
         // Set the heading of the L2NpcInstance (random heading if not defined)
         if (getHeading() == -1)
         {