bane system work

This commit is contained in:
2024-12-31 14:09:11 -06:00
parent c526fd8847
commit 5d92c1c86d
+10
View File
@@ -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();