|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|