From 190abc73f2248c842b2f056c97d4ee4c8198e3db Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 22 Sep 2022 22:06:09 +0000 Subject: [PATCH] Properly spawn boss at Training Zone. --- .../data/scripts/instances/TrainingZone/TrainingZone.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/instances/TrainingZone/TrainingZone.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/instances/TrainingZone/TrainingZone.java index b418291d55..b38a65400f 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/instances/TrainingZone/TrainingZone.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/instances/TrainingZone/TrainingZone.java @@ -383,13 +383,7 @@ public class TrainingZone extends AbstractInstance } case "SpawnBossClockList": { - // Last 10 Min < 600000 Boss spawn final Instance world = npc.getInstanceWorld(); - if (world.getRemainingTime() > 600000) - { - break; - } - final int areaTeleport = world.getParameters().getInt("TRAINIG_AREA_TELEPORT", 0); if (areaTeleport == 1) { @@ -842,7 +836,7 @@ public class TrainingZone extends AbstractInstance public String onAttack(Npc npc, Player attacker, int damage, boolean isSummon) { final Instance world = npc.getInstanceWorld(); - if ((world != null) && !world.getParameters().getBoolean("spawnedBoss", false)) + if ((world != null) && (world.getRemainingTime() < 600000) && !world.getParameters().getBoolean("spawnedBoss", false)) { world.getParameters().set("spawnedBoss", true); startQuestTimer("SpawnBossClockList", 1000, npc, attacker);