From 18bcd79733de71d681cd05b6328fc9d9ddf79d79 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jul 2023 14:08:44 -0500 Subject: [PATCH] pets now spawn at owners location --- src/engine/powers/poweractions/CreateMobPowerAction.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/powers/poweractions/CreateMobPowerAction.java b/src/engine/powers/poweractions/CreateMobPowerAction.java index e9823ffd..34197fe4 100644 --- a/src/engine/powers/poweractions/CreateMobPowerAction.java +++ b/src/engine/powers/poweractions/CreateMobPowerAction.java @@ -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 { // 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);