From fb47c3ac9e69abf55bb565d8804ad74b5004a242 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 11 Jul 2016 18:06:26 +0200 Subject: [PATCH] Fix the attack-move cursor appearing for units which can't attack-move --- OpenRA.Mods.Common/Widgets/WorldCommandWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/WorldCommandWidget.cs b/OpenRA.Mods.Common/Widgets/WorldCommandWidget.cs index 720e146f4e..a82c25d904 100644 --- a/OpenRA.Mods.Common/Widgets/WorldCommandWidget.cs +++ b/OpenRA.Mods.Common/Widgets/WorldCommandWidget.cs @@ -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()) .ToArray(); if (actors.Any())