diff --git a/OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs b/OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs index 2afda3f700..fdb04c2510 100644 --- a/OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs +++ b/OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs @@ -45,6 +45,10 @@ namespace OpenRA.Mods.Common.Orders if (underCursor.Info.HasTraitInfo()) yield return new Order("RepairBuilding", world.LocalPlayer.PlayerActor, false) { TargetActor = underCursor }; + // Don't command allied units + if (underCursor.Owner != world.LocalPlayer) + yield break; + // Test for generic Repairable (used on units). var repairable = underCursor.TraitOrDefault(); if (repairable == null)