Browse Source

DP-Part for L2J/L2J_Server@5dbd8ed278e035a9f327b143c31c27f14ea354d6.

NosBit 10 years ago
parent
commit
1890333b7f

+ 2 - 3
L2J_DataPack/dist/game/data/scripts/handlers/effecthandlers/Spoil.java

@@ -60,14 +60,13 @@ public final class Spoil extends AbstractEffect
 		}
 		
 		final L2MonsterInstance target = (L2MonsterInstance) info.getEffected();
-		if (target.isSpoil())
+		if (target.isSpoiled())
 		{
 			info.getEffector().sendPacket(SystemMessageId.ALREADY_SPOILED);
 			return;
 		}
 		
-		target.setSpoil(true);
-		target.setIsSpoiledBy(info.getEffector().getObjectId());
+		target.setSpoilerObjectId(info.getEffector().getObjectId());
 		info.getEffector().sendPacket(SystemMessageId.SPOIL_SUCCESS);
 		target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, info.getEffector());
 	}

+ 2 - 2
L2J_DataPack/dist/game/data/scripts/quests/Q00417_PathOfTheScavenger/Q00417_PathOfTheScavenger.java

@@ -415,7 +415,7 @@ public final class Q00417_PathOfTheScavenger extends Quest
 				}
 				case HONEY_BEAR:
 				{
-					if (npc.isScriptValue(2) && firstAttacker && ((L2Attackable) npc).isSpoil() && hasQuestItems(killer, BEAR_PICTURE))
+					if (npc.isScriptValue(2) && firstAttacker && ((L2Attackable) npc).isSpoiled() && hasQuestItems(killer, BEAR_PICTURE))
 					{
 						if (giveItemRandomly(killer, npc, HONEY_JAR, 1, 5, 1.0, true))
 						{
@@ -427,7 +427,7 @@ public final class Q00417_PathOfTheScavenger extends Quest
 				case HUNTER_TARANTULA:
 				case PLUNDER_TARANTULA:
 				{
-					if (npc.isScriptValue(2) && firstAttacker && ((L2Attackable) npc).isSpoil() && hasQuestItems(killer, TARANTULA_PICTURE))
+					if (npc.isScriptValue(2) && firstAttacker && ((L2Attackable) npc).isSpoiled() && hasQuestItems(killer, TARANTULA_PICTURE))
 					{
 						if (giveItemRandomly(killer, npc, BEAD, 1, 20, 1.0, true))
 						{