All pastes #55501 Raw Edit

Untitled

public text v1 · immutable
#55501 ·published 2006-05-13 06:04 UTC
rendered paste body
Index: D:/l2jc4/L2_GameServer_c4/java/net/sf/l2j/gameserver/handler/skillhandlers/Spoil.java
===================================================================
--- D:/l2jc4/L2_GameServer_c4/java/net/sf/l2j/gameserver/handler/skillhandlers/Spoil.java	(revision 1917)
+++ D:/l2jc4/L2_GameServer_c4/java/net/sf/l2j/gameserver/handler/skillhandlers/Spoil.java	(working copy)
@@ -65,6 +65,12 @@
 			
 			L2MonsterInstance target = (L2MonsterInstance) targetList[index];
 
+			// check target isnt already spoiled
+            if (target.isSpoil() == true)
+            {
+                activeChar.sendPacket(new SystemMessage(SystemMessage.NOTHING_HAPPENED));
+                return;
+            }
 			// SPOIL SYSTEM by ootz0rz
 			boolean spoil = false;
 			if ( target.isDead() == false )