stop repairing a building if we don't like its owner (fixes interaction with capture)

This commit is contained in:
Chris Forbes
2011-12-31 10:50:18 +13:00
parent 0d25b6b5c9
commit c34b254fd8

View File

@@ -65,7 +65,7 @@ namespace OpenRA.Mods.RA.Buildings
if (remainingTicks == 0)
{
if (Repairer.WinState != WinState.Undefined)
if (Repairer.WinState != WinState.Undefined || Repairer.Stances[self.Owner] != Stance.Ally)
{
Repairer = null;
return;