From 05f555b5b5d54354350dfaee1579776934ae8d1b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 28 Dec 2024 05:53:38 -0600 Subject: [PATCH] bane commander NPC --- src/engine/gameManager/BuildingManager.java | 2 ++ src/engine/objects/Bane.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 4463e6fb..2ef18c57 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -445,6 +445,8 @@ public enum BuildingManager { if(banedCity != null){ if(banedCity.getGuild().getNation().equals(playerNation)){ return false; + }else{ + return true; } } } diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index 8beb3b57..1f7baa9e 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -281,6 +281,8 @@ public final class Bane { baneCommander = NPC.createNPC("Bane Commander", contractID, spawnLoc, bane.getCity().getGuild(), ZoneManager.findSmallestZone(bane.getStone().loc), (short) 70, bane.getStone()); baneCommander.setLoc(spawnLoc); baneCommander.setGuild(bane.getCity().getGuild()); + WorldGrid.addObject(baneCommander,spawnLoc.x, spawnLoc.z); + WorldGrid.updateObject(baneCommander); } else {