From 6598cd704d9c0bc08b25b7dab39bab621526bb99 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 20 Mar 2010 15:56:37 +1300 Subject: [PATCH] fix thief trying to enter friendly buildings --- OpenRA.Mods.RA/Thief.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.RA/Thief.cs b/OpenRA.Mods.RA/Thief.cs index 6e74749694..18dcc4aa7f 100644 --- a/OpenRA.Mods.RA/Thief.cs +++ b/OpenRA.Mods.RA/Thief.cs @@ -32,6 +32,7 @@ namespace OpenRA.Mods.RA { if (mi.Button != MouseButton.Right) return null; if (underCursor == null) return null; + if (self.Owner.Stances[underCursor.Owner] != Stance.Enemy) return null; if (!underCursor.traits.Contains()) return null; return new Order("Steal", self, underCursor);