diff --git a/OpenRA.Mods.Common/Traits/AutoTarget.cs b/OpenRA.Mods.Common/Traits/AutoTarget.cs index d5c47acfd7..559eff04dc 100644 --- a/OpenRA.Mods.Common/Traits/AutoTarget.cs +++ b/OpenRA.Mods.Common/Traits/AutoTarget.cs @@ -180,7 +180,7 @@ namespace OpenRA.Mods.Common.Traits && !target.IsInRange(self.CenterPosition, arm.Weapon.MinRange))), a); }) - .Where(kv => kv.Key != null) + .Where(kv => kv.Key != null && self.Owner.CanViewActor(kv.Value)) .GroupBy(kv => kv.Key, kv => kv.Value) .ToDictionary(kv => kv.Key, kv => kv.ClosestTo(self));