work on pet AI

This commit is contained in:
2023-07-15 15:27:22 -05:00
parent e0929a4cbd
commit 7dc6fece7d
2 changed files with 16 additions and 7 deletions
@@ -155,7 +155,9 @@ 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);
if(pet.isSiege() == false) {
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);