|
|
@ -15,6 +15,7 @@ import engine.Enum.GameObjectType; |
|
|
|
import engine.Enum.ModType; |
|
|
|
import engine.Enum.ModType; |
|
|
|
import engine.Enum.SourceType; |
|
|
|
import engine.Enum.SourceType; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
|
|
|
|
import engine.gameManager.DbManager; |
|
|
|
import engine.gameManager.ZoneManager; |
|
|
|
import engine.gameManager.ZoneManager; |
|
|
|
import engine.math.Vector3fImmutable; |
|
|
|
import engine.math.Vector3fImmutable; |
|
|
|
import engine.mobileAI.Threads.MobAIThread; |
|
|
|
import engine.mobileAI.Threads.MobAIThread; |
|
|
@ -153,6 +154,7 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter { |
|
|
|
if ((this.agentType.equals(Enum.AIAgentType.PET))) { //delete summoned pet
|
|
|
|
if ((this.agentType.equals(Enum.AIAgentType.PET))) { //delete summoned pet
|
|
|
|
|
|
|
|
|
|
|
|
WorldGrid.RemoveWorldObject(this); |
|
|
|
WorldGrid.RemoveWorldObject(this); |
|
|
|
|
|
|
|
DbManager.removeFromCache(this); |
|
|
|
|
|
|
|
|
|
|
|
if (this.getObjectType() == GameObjectType.Mob) |
|
|
|
if (this.getObjectType() == GameObjectType.Mob) |
|
|
|
if (((Mob) this).getParentZone() != null) |
|
|
|
if (((Mob) this).getParentZone() != null) |
|
|
|