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