Don't allow engineers to repair neutral structures, it conflicts with capturing.

This commit is contained in:
Paul Chote
2011-07-27 00:49:44 +12:00
parent d8ec459b97
commit 3972836cd6

View File

@@ -65,7 +65,10 @@ namespace OpenRA.Mods.RA
if( !base.CanTargetActor( self, target, forceAttack, forceMove, forceQueued, ref cursor ) ) return false;
if (!target.HasTrait<RepairableBuilding>())
return false;
if (self.Owner.Stances[ target.Owner ] != Stance.Ally)
return false;
IsQueued = forceQueued;
if( target.GetDamageState() == DamageState.Undamaged )