This commit is contained in:
Anuken
2022-10-21 17:30:10 -04:00
parent 4dd4396445
commit 46e5f55e9c

View File

@ -248,7 +248,7 @@ public class RtsAI{
for(var unit : units){
if(unit.isCommandable() && !unit.command().hasCommand()){
if(defendPos != null){
unit.command().commandPosition(defendPos);
unit.command().commandPosition(defendPos, true);
}else{
//TODO stopAtTarget parameter could be false, could be tweaked
unit.command().commandTarget(defendTarget == null ? build : defendTarget, defendTarget != null);