use AreMutualAllies in SVC

This commit is contained in:
Chris Forbes
2011-07-09 16:55:21 +12:00
committed by Paul Chote
parent 4e1c845303
commit f37cf32021

View File

@@ -186,7 +186,7 @@ namespace OpenRA.Mods.RA
{
var cvc = p.PlayerActor.Trait<ConquestVictoryConditions>();
if ((p.WinState == WinState.Undefined) && (p == self.Owner || (p.Stances[self.Owner] == Stance.Ally && self.Owner.Stances[p] == Stance.Ally)))
if (p.WinState == WinState.Undefined && WorldUtils.AreMutualAllies(self.Owner, p))
{
cvc.Win(p.PlayerActor);
}