|
|
|
@ -31,10 +31,8 @@ public class PlayerPet {
@@ -31,10 +31,8 @@ public class PlayerPet {
|
|
|
|
|
pet.despawn(); |
|
|
|
|
return; |
|
|
|
|
case patrolling: |
|
|
|
|
if(pet.loc.distanceSquared(pet.getOwner().loc) > 25){ |
|
|
|
|
if(pet.loc.distanceSquared(pet.getOwner().loc) > 90 && !pet.isMoving()){ |
|
|
|
|
MovementUtilities.aiMove(pet,pet.getOwner().loc,false); |
|
|
|
|
} else if (pet.isMoving()) { |
|
|
|
|
pet.stopMovement(pet.getMovementLoc()); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
case attacking: |
|
|
|
|