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 {
public static void GuardMinionLogic(Mob mob) { public static void GuardMinionLogic(Mob mob) {
try { try {
if (!mob.npcOwner.isAlive() && mob.getCombatTarget() == null) if (!mob.npcOwner.isAlive() && mob.getCombatTarget() == null) {
CheckForPlayerGuardAggro(mob); CheckForPlayerGuardAggro(mob);
}else {
if (mob.npcOwner.getCombatTarget() != null) if (mob.npcOwner.getCombatTarget() != null)
mob.setCombatTarget(mob.npcOwner.getCombatTarget()); mob.setCombatTarget(mob.npcOwner.getCombatTarget());
else else
mob.setCombatTarget(null); mob.setCombatTarget(null);
}
CheckMobMovement(mob); CheckMobMovement(mob);
CheckForAttack(mob); CheckForAttack(mob);
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save