Browse Source

bane system work

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
5d92c1c86d
  1. 10
      src/engine/objects/Bane.java

10
src/engine/objects/Bane.java

@ -487,6 +487,16 @@ public final class Bane {
return false; 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 // Remove object from simulation
baneStone.removeFromCache(); baneStone.removeFromCache();

Loading…
Cancel
Save