Fix the attack-move cursor appearing for units which can't attack-move

This commit is contained in:
abcdefg30
2016-07-11 18:06:26 +02:00
parent 4703497656
commit fb47c3ac9e

View File

@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Widgets
bool PerformAttackMove()
{
var actors = world.Selection.Actors
.Where(a => a.Owner == world.LocalPlayer)
.Where(a => a.Owner == world.LocalPlayer && a.Info.HasTraitInfo<AttackMoveInfo>())
.ToArray();
if (actors.Any())