diff --git a/OpenRA.Game/WorldUtils.cs b/OpenRA.Game/WorldUtils.cs index eabc41a32e..dc0beed76f 100755 --- a/OpenRA.Game/WorldUtils.cs +++ b/OpenRA.Game/WorldUtils.cs @@ -158,5 +158,11 @@ namespace OpenRA Log.Write("perf", text, x, dt * 1000, Game.LocalTick); }); } + + public static bool AreMutualAllies( Player a, Player b ) + { + return a.Stances[b] == Stance.Ally && + b.Stances[a] == Stance.Ally; + } } }