From 4778ef803e50f612a556ca9abd8f8bff6430a6ea Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Wed, 2 May 2012 11:40:10 -0600 Subject: [PATCH] Spy - don't reset exploration if team has GPS --- OpenRA.Mods.RA/InfiltrateForExploration.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenRA.Mods.RA/InfiltrateForExploration.cs b/OpenRA.Mods.RA/InfiltrateForExploration.cs index bf153f6438..d0ccefbe66 100644 --- a/OpenRA.Mods.RA/InfiltrateForExploration.cs +++ b/OpenRA.Mods.RA/InfiltrateForExploration.cs @@ -25,7 +25,13 @@ namespace OpenRA.Mods.RA * - actually steal their exploration before resetting it */ if (self.World.LocalPlayer != null && self.World.LocalPlayer.Stances[self.Owner] == Stance.Ally) + { + var gpsWatcher = self.Owner.PlayerActor.TraitOrDefault(); + if (gpsWatcher != null && (gpsWatcher.Granted || gpsWatcher.GrantedAllies)) + return; + self.Owner.Shroud.ResetExploration(); + } } } }