Group bot AttackMove orders.

This commit is contained in:
Paul Chote
2021-01-03 15:48:06 +00:00
committed by reaperrr
parent f9a5669eb4
commit aeab9a8116
3 changed files with 11 additions and 16 deletions

View File

@@ -55,10 +55,7 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads
Backoff--;
}
else
{
foreach (var a in owner.Units)
owner.Bot.QueueOrder(new Order("AttackMove", a, Target.FromCell(owner.World, owner.TargetActor.Location), false));
}
owner.Bot.QueueOrder(new Order("AttackMove", null, Target.FromCell(owner.World, owner.TargetActor.Location), false, groupedActors: owner.Units.ToArray()));
}
public void Deactivate(Squad owner) { }