Enable AutoTarget to aquire targets under fog if GPS is present

This commit is contained in:
Pavel Penev
2015-11-10 21:49:31 +02:00
parent cfdce8d1a2
commit ab2c5ab43d

View File

@@ -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));