Browse Source

guard minion AI restored to follow captain attack commands

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

4
src/engine/mobileAI/MobAI.java

@ -1074,12 +1074,10 @@ public class MobAI { @@ -1074,12 +1074,10 @@ public class MobAI {
}
}else {
if (mob.npcOwner.getCombatTarget() != null)
if(mob.getCombatTarget() != null && mob.getCombatTarget().equals(mob.npcOwner.getCombatTarget()) == false)
mob.setCombatTarget(mob.npcOwner.getCombatTarget());
else
if(mob.getCombatTarget() != null) {
if (mob.getCombatTarget() != null)
mob.setCombatTarget(null);
}
}
CheckMobMovement(mob);
CheckForAttack(mob);

Loading…
Cancel
Save