fix thief trying to enter friendly buildings
This commit is contained in:
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
if (mi.Button != MouseButton.Right) return null;
|
if (mi.Button != MouseButton.Right) return null;
|
||||||
if (underCursor == null) return null;
|
if (underCursor == null) return null;
|
||||||
|
if (self.Owner.Stances[underCursor.Owner] != Stance.Enemy) return null;
|
||||||
if (!underCursor.traits.Contains<IAcceptThief>()) return null;
|
if (!underCursor.traits.Contains<IAcceptThief>()) return null;
|
||||||
|
|
||||||
return new Order("Steal", self, underCursor);
|
return new Order("Steal", self, underCursor);
|
||||||
|
|||||||
Reference in New Issue
Block a user