From 235b5e73759897750dc6af2bd63c13c85cd99e9b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 9 Jan 2025 08:23:30 -0600 Subject: [PATCH] remove pet properly when no owner found --- src/engine/mobileAI/BehaviourFiles/PlayerPet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/mobileAI/BehaviourFiles/PlayerPet.java b/src/engine/mobileAI/BehaviourFiles/PlayerPet.java index 73395e7e..adb78528 100644 --- a/src/engine/mobileAI/BehaviourFiles/PlayerPet.java +++ b/src/engine/mobileAI/BehaviourFiles/PlayerPet.java @@ -17,7 +17,8 @@ import java.util.Map; public class PlayerPet { public static void process(Mob pet){ - if(pet.getOwner() == null){ + if(pet.getOwner() == null && !pet.isNecroPet()){ + pet.killCharacter("no owner"); return; }