|
|
|
@ -264,7 +264,7 @@ public class MobAI {
@@ -264,7 +264,7 @@ public class MobAI {
|
|
|
|
|
if (!forced) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
//guards inherit barracks patrol points dynamically
|
|
|
|
|
//guards inherit barracks patrol points dynamically
|
|
|
|
|
|
|
|
|
|
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN) || mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) { |
|
|
|
|
|
|
|
|
@ -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; |
|
|
|
|