"Hugging" fix for RTS AI

This commit is contained in:
Anuken
2022-04-24 14:11:21 -04:00
parent 03a469e56f
commit abdb1c1252
2 changed files with 2 additions and 2 deletions

View File

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