mobs aggro to pets

This commit is contained in:
2023-07-18 19:51:00 -05:00
parent bd48198a51
commit 1c7c0ee13e
2 changed files with 19 additions and 3 deletions
@@ -159,9 +159,7 @@ public class CreateMobPowerAction extends AbstractPowerAction {
MovementManager.translocate(pet, owner.getLoc(), owner.region);
}
pet.recalculateStats();
if(pet.isPet()){
pet.healthMax = pet.level * 0.5f * 120;
}
pet.healthMax = pet.level * 0.5f * 120;
pet.setHealth(pet.healthMax);
PetMsg pm = new PetMsg(5, pet);
Dispatch dispatch = Dispatch.borrow(owner, pm);