Browse Source

Aggro code removed from check to send mob home.

feature-workorder
MagicBot 1 year ago
parent
commit
db4eb0579e
  1. 9
      src/engine/mobileAI/MobAI.java

9
src/engine/mobileAI/MobAI.java

@ -843,15 +843,6 @@ public class MobAI { @@ -843,15 +843,6 @@ public class MobAI {
private static void CheckToSendMobHome(Mob mob) {
try {
if (mob.behaviourType.isAgressive) {
if (mob.isPlayerGuard()) {
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN))
CheckForPlayerGuardAggro(mob);
} else {
CheckForAggro(mob);
}
}
if (mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob, mob.getCombatTarget(), MobAIThread.AI_BASE_AGGRO_RANGE * 0.5f))
return;

Loading…
Cancel
Save