Merge remote-tracking branch 'origin/master'

This commit is contained in:
Epowerj
2022-10-21 17:30:19 -04:00

View File

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