"Hugging" fix for RTS AI
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user