diff --git a/OpenRA.Mods.RA/HackyAI.cs b/OpenRA.Mods.RA/HackyAI.cs index 053ef55141..67a93359c1 100644 --- a/OpenRA.Mods.RA/HackyAI.cs +++ b/OpenRA.Mods.RA/HackyAI.cs @@ -283,13 +283,13 @@ namespace OpenRA.Mods.RA attackTarget = ChooseEnemyTarget(); if (attackTarget == null) return; + + foreach (var a in unitsHangingAroundTheBase) + if (TryToMove(a, attackTarget.Value, true)) + attackForce.Add(a); + + unitsHangingAroundTheBase.Clear(); } - - foreach (var a in unitsHangingAroundTheBase) - if (TryToMove(a, attackTarget.Value, true)) - attackForce.Add(a); - - unitsHangingAroundTheBase.Clear(); } // If we have any attackers, let them scan for enemy units and stop and regroup if they spot any