Browse Source

Patrol points only set once.

feature-workorder
MagicBot 1 year ago
parent
commit
3f416f83d3
  1. 1
      src/engine/mobileAI/MobAI.java

1
src/engine/mobileAI/MobAI.java

@ -266,6 +266,7 @@ public class MobAI {
//guards inherit barracks patrol points dynamically //guards inherit barracks patrol points dynamically
if (mob.patrolPoints == null || mob.patrolPoints.isEmpty())
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN) || mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) { if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN) || mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) {
Building barracks = mob.building; Building barracks = mob.building;

Loading…
Cancel
Save