|
|
@ -582,8 +582,9 @@ public class MobAI { |
|
|
|
boolean bypassLoadedPlayerCheck = false; |
|
|
|
boolean bypassLoadedPlayerCheck = false; |
|
|
|
if(mob.isPlayerGuard() || mob.isSiege()) { |
|
|
|
if(mob.isPlayerGuard() || mob.isSiege()) { |
|
|
|
bypassLoadedPlayerCheck = true; |
|
|
|
bypassLoadedPlayerCheck = true; |
|
|
|
if(mob.combatTarget != null && !mob.playerAgroMap.containsKey(mob.combatTarget.getObjectUUID()) && mob.combatTarget.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) |
|
|
|
if(mob.combatTarget != null && mob.combatTarget.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) |
|
|
|
mob.setCombatTarget(null); |
|
|
|
if(mob.combatTarget.loc.distanceSquared(mob.loc) > 10000) |
|
|
|
|
|
|
|
mob.setCombatTarget(null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mob.playerAgroMap.isEmpty() && !bypassLoadedPlayerCheck) { |
|
|
|
if (mob.playerAgroMap.isEmpty() && !bypassLoadedPlayerCheck) { |
|
|
|