Browse Source

fixed bug where pet persisted through dismissal

master
FatBoy-DOTC 1 year ago
parent
commit
ea2241732a
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -2231,7 +2231,7 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.isPet()) { if (this.isPet()) {
if ((this.agentType.equals(AIAgentType.PET))) { //delete summoned pet if ((this.agentType.equals(AIAgentType.PET))) { //delete summoned pet
this.despawn();
WorldGrid.RemoveWorldObject(this); WorldGrid.RemoveWorldObject(this);
DbManager.removeFromCache(this); DbManager.removeFromCache(this);

Loading…
Cancel
Save