Browse Source

pet buff trouble shooting

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
0d4e8f3c9a
  1. 2
      src/engine/objects/AbstractIntelligenceAgent.java
  2. 1
      src/engine/powers/poweractions/CreateMobPowerAction.java

2
src/engine/objects/AbstractIntelligenceAgent.java

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

1
src/engine/powers/poweractions/CreateMobPowerAction.java

@ -134,6 +134,7 @@ public class CreateMobPowerAction extends AbstractPowerAction { @@ -134,6 +134,7 @@ public class CreateMobPowerAction extends AbstractPowerAction {
NPCManager.resetNecroPets(owner);
}
}
DbManager.addToCache(pet);
owner.setPet(pet);

Loading…
Cancel
Save