diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index 376f905a..86d80d0a 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -487,6 +487,16 @@ public final class Bane { return false; } + //Remove bane commander NPC + if(!baneStone.getHirelings().isEmpty()) { + NPC npc = (NPC)baneStone.getHirelings().keySet().stream().findFirst().orElse(null); + if(npc != null) { + DbManager.NPCQueries.DELETE_NPC(npc); + DbManager.removeFromCache(npc); + WorldGrid.RemoveWorldObject(npc); + WorldGrid.removeObject(npc); + } + } // Remove object from simulation baneStone.removeFromCache();