Browse Source

remove pet properly when no owner found

lakebane-easy
FatBoy-DOTC 1 week ago
parent
commit
235b5e7375
  1. 3
      src/engine/mobileAI/BehaviourFiles/PlayerPet.java

3
src/engine/mobileAI/BehaviourFiles/PlayerPet.java

@ -17,7 +17,8 @@ import java.util.Map; @@ -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;
}

Loading…
Cancel
Save