Fixed bombers stopping when patrolling

This commit is contained in:
Anuken 2023-11-27 06:55:40 -05:00
parent fbf8b2bff1
commit d759e71edc

View file

@ -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;
}