From ab2c5ab43dc1b743c20d3fc95b44e5b492195bb1 Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Tue, 10 Nov 2015 21:49:31 +0200 Subject: [PATCH] Enable AutoTarget to aquire targets under fog if GPS is present --- OpenRA.Mods.Common/Traits/AutoTarget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/AutoTarget.cs b/OpenRA.Mods.Common/Traits/AutoTarget.cs index 4c85995474..fea4f3eaf7 100644 --- a/OpenRA.Mods.Common/Traits/AutoTarget.cs +++ b/OpenRA.Mods.Common/Traits/AutoTarget.cs @@ -190,7 +190,7 @@ namespace OpenRA.Mods.Common.Traits && !target.IsInRange(self.CenterPosition, arm.Weapon.MinRange))), a); }) - .Where(kv => kv.Key != null && self.Owner.CanViewActor(kv.Value)) + .Where(kv => kv.Key != null && self.Owner.CanTargetActor(kv.Value)) .GroupBy(kv => kv.Key, kv => kv.Value) .ToDictionary(kv => kv.Key, kv => kv.ClosestTo(self));