pet troubles resolved

This commit is contained in:
2023-07-15 18:38:46 -05:00
parent 06c4b7ca3c
commit 9ea02c888f
3 changed files with 22 additions and 18 deletions
+5 -4
View File
@@ -1331,9 +1331,11 @@ public class Mob extends AbstractIntelligenceAgent {
this.combatTarget = null;
this.hasLoot = false;
if (this.parentZone != null)
this.parentZone.zoneMobSet.remove(this);
//if (this.parentZone != null)
//this.parentZone.zoneMobSet.remove(this);
if(ZoneManager.getSeaFloor().zoneMobSet.contains(this)) {
ZoneManager.getSeaFloor().zoneMobSet.remove(this);
}
try {
this.clearEffects();
} catch (Exception e) {
@@ -1372,7 +1374,6 @@ public class Mob extends AbstractIntelligenceAgent {
this.combatTarget = null;
this.hasLoot = this.charItemManager.getInventoryCount() > 0;
} catch (Exception e) {
Logger.error(e);
}