From d13e939ddd7726200ad80e8dad376fb58e4b81c8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 28 Dec 2024 06:00:21 -0600 Subject: [PATCH] bane commander NPC --- src/engine/objects/Bane.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index 23414c10..1cb1d051 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -279,18 +279,15 @@ public final class Bane { //add bane commander NPC int contractID = 1502042; 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()); } else { baneCommander = NPC.getNPC(commanderuuid); - baneCommander.setLoc(spawnLoc); - baneCommander.setGuild(bane.getCity().getGuild()); } + baneCommander.setLoc(spawnLoc); + InterestManager.setObjectDirty(baneCommander); WorldGrid.addObject(baneCommander,spawnLoc.x, spawnLoc.z); WorldGrid.updateObject(baneCommander); - InterestManager.setObjectDirty(baneCommander); } public static Bane getBane(int cityUUID) {