From d759e71edc9b6bc6043f157cd7dac368ae1ea3ef Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 27 Nov 2023 06:55:40 -0500 Subject: [PATCH] Fixed bombers stopping when patrolling --- core/src/mindustry/ai/types/CommandAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/types/CommandAI.java b/core/src/mindustry/ai/types/CommandAI.java index 120360534f..0cf650ccc2 100644 --- a/core/src/mindustry/ai/types/CommandAI.java +++ b/core/src/mindustry/ai/types/CommandAI.java @@ -214,7 +214,7 @@ public class CommandAI extends AIController{ } //TODO: should the unit stop when it finds a target? - if(stance == UnitStance.patrol && target != null && unit.within(target, unit.type.range - 2f)){ + if(stance == UnitStance.patrol && target != null && unit.within(target, unit.type.range - 2f) && !unit.type.circleTarget){ move = false; }