Make attack moving and guarding use a grouped order

This commit is contained in:
abcdefg30
2019-12-12 22:39:10 +01:00
committed by atlimit8
parent 78bf27709f
commit e57462e7ca
3 changed files with 4 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
#endregion
using System.Collections.Generic;
using OpenRA.Graphics;
using System.Linq;
using OpenRA.Traits;
namespace OpenRA.Orders
@@ -53,8 +53,7 @@ namespace OpenRA.Orders
world.CancelInputMode();
var queued = mi.Modifiers.HasModifier(Modifiers.Shift);
foreach (var subject in Subjects)
yield return new Order(OrderName, subject, Target.FromCell(world, cell), queued);
yield return new Order(OrderName, null, Target.FromCell(world, cell), queued, null, Subjects.ToArray());
}
}