From db38f52721246a16f8b857abc4460623c1ff5272 Mon Sep 17 00:00:00 2001 From: deniz1a Date: Sat, 16 May 2015 15:20:07 +0300 Subject: [PATCH] Fixes location of phase transport being revealed by attack line. --- OpenRA.Game/Traits/World/Shroud.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Traits/World/Shroud.cs b/OpenRA.Game/Traits/World/Shroud.cs index b3c6746fbe..955d79cb9b 100644 --- a/OpenRA.Game/Traits/World/Shroud.cs +++ b/OpenRA.Game/Traits/World/Shroud.cs @@ -383,12 +383,12 @@ namespace OpenRA.Traits public bool IsTargetable(Actor a) { - if (HasFogVisibility()) - return true; - if (a.TraitsImplementing().Any(t => !t.IsVisible(a, self.Owner))) return false; + if (HasFogVisibility()) + return true; + return GetVisOrigins(a).Any(IsVisible); }