Patrol points only set once.

This commit is contained in:
2023-09-09 09:11:43 -04:00
parent 931d1992b6
commit 3f416f83d3
+1
View File
@@ -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;