From 1bf7f6c2808cddd3587fe36daafa7b6aec010bcf Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 21 Aug 2016 20:31:09 +0000 Subject: [PATCH] Castle check fix for Castle Dungeons. --- .../data/scripts/instances/CastleDungeon/CastleDungeon.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 05c739895d..a2861e760a 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -30,7 +30,7 @@ import com.l2jmobius.gameserver.enums.QuestSound; import com.l2jmobius.gameserver.model.Location; import com.l2jmobius.gameserver.model.actor.L2Npc; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; -import com.l2jmobius.gameserver.model.entity.Fort; +import com.l2jmobius.gameserver.model.entity.Castle; import com.l2jmobius.gameserver.model.instancezone.Instance; import com.l2jmobius.gameserver.model.instancezone.InstanceTemplate; import com.l2jmobius.gameserver.model.quest.QuestState; @@ -165,8 +165,8 @@ public final class CastleDungeon extends AbstractInstance protected boolean validateConditions(List group, L2Npc npc, InstanceTemplate template) { final L2PcInstance groupLeader = group.get(0); - final Fort fort = npc.getFort(); - if (fort == null) + final Castle castle = npc.getCastle(); + if (castle == null) { showHtmlFile(groupLeader, "noProperPledge.html"); return false;