diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 7a2ee6fb..c4ccb590 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -243,7 +243,12 @@ public class MobAI { target.setCombatTarget(mob); } } - target.setCombatTarget(mob); + if(target.isAlive()) + target.setCombatTarget(mob); + + if(target.isPet() && target.isAlive() == false && target.guardCaptain.isAlive() == true){ + mob.setCombatTarget(target.guardCaptain); + } } catch (Exception e) { Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: AttackMob" + " " + e.getMessage()); }