cleanup
This commit is contained in:
@@ -584,7 +584,7 @@ public class MobAI {
|
||||
if(mob.isPlayerGuard() || mob.isSiege()) {
|
||||
bypassLoadedPlayerCheck = true;
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user