Browse Source

guard minion aggro fixed

master
FatBoy-DOTC 1 year ago
parent
commit
f852037a61
  1. 14
      src/engine/mobileAI/MobAI.java

14
src/engine/mobileAI/MobAI.java

@ -1069,14 +1069,14 @@ public class MobAI { @@ -1069,14 +1069,14 @@ public class MobAI {
public static void GuardMinionLogic(Mob mob) {
try {
if (!mob.npcOwner.isAlive() && mob.getCombatTarget() == null)
if (!mob.npcOwner.isAlive() && mob.getCombatTarget() == null) {
CheckForPlayerGuardAggro(mob);
if (mob.npcOwner.getCombatTarget() != null)
mob.setCombatTarget(mob.npcOwner.getCombatTarget());
else
mob.setCombatTarget(null);
}else {
if (mob.npcOwner.getCombatTarget() != null)
mob.setCombatTarget(mob.npcOwner.getCombatTarget());
else
mob.setCombatTarget(null);
}
CheckMobMovement(mob);
CheckForAttack(mob);
} catch (Exception e) {

Loading…
Cancel
Save