Browse Source

pets now spawn at owners location

master
FatBoy-DOTC 1 year ago
parent
commit
18bcd79733
  1. 3
      src/engine/powers/poweractions/CreateMobPowerAction.java

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

@ -11,7 +11,9 @@ package engine.powers.poweractions; @@ -11,7 +11,9 @@ package engine.powers.poweractions;
import engine.Enum;
import engine.InterestManagement.WorldGrid;
import engine.ai.utilities.MovementUtilities;
import engine.gameManager.DbManager;
import engine.gameManager.MovementManager;
import engine.gameManager.NPCManager;
import engine.gameManager.ZoneManager;
import engine.math.Vector3fImmutable;
@ -153,6 +155,7 @@ public class CreateMobPowerAction extends AbstractPowerAction { @@ -153,6 +155,7 @@ public class CreateMobPowerAction extends AbstractPowerAction {
// if (mobID == 12021 || mobID == 12022) //Necro Pets
// pet.setPet(owner, true);
owner.setPet(pet);
MovementManager.translocate(pet,owner.getLoc(),owner.region);
PetMsg pm = new PetMsg(5, pet);
Dispatch dispatch = Dispatch.borrow(owner, pm);
DispatchMessage.dispatchMsgDispatch(dispatch, engine.Enum.DispatchChannel.SECONDARY);

Loading…
Cancel
Save