Browse Source

cleanup

hull4
FatBoy-DOTC 1 year ago
parent
commit
a2c7fd2404
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -584,7 +584,7 @@ public class MobAI {
if(mob.isPlayerGuard() || mob.isSiege()) { if(mob.isPlayerGuard() || mob.isSiege()) {
bypassLoadedPlayerCheck = true; bypassLoadedPlayerCheck = true;
if(mob.combatTarget != null && mob.combatTarget.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) if(mob.combatTarget != null && mob.combatTarget.getObjectType().equals(Enum.GameObjectType.PlayerCharacter))
if(mob.combatTarget.loc.distanceSquared(mob.loc) > 10000) if(mob.combatTarget.loc.distanceSquared(mob.loc) > 62500)
mob.setCombatTarget(null); mob.setCombatTarget(null);
} }

Loading…
Cancel
Save