Don't allow engineers to repair neutral structures, it conflicts with capturing.
This commit is contained in:
@@ -65,7 +65,10 @@ namespace OpenRA.Mods.RA
|
|||||||
if( !base.CanTargetActor( self, target, forceAttack, forceMove, forceQueued, ref cursor ) ) return false;
|
if( !base.CanTargetActor( self, target, forceAttack, forceMove, forceQueued, ref cursor ) ) return false;
|
||||||
if (!target.HasTrait<RepairableBuilding>())
|
if (!target.HasTrait<RepairableBuilding>())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (self.Owner.Stances[ target.Owner ] != Stance.Ally)
|
||||||
|
return false;
|
||||||
|
|
||||||
IsQueued = forceQueued;
|
IsQueued = forceQueued;
|
||||||
|
|
||||||
if( target.GetDamageState() == DamageState.Undamaged )
|
if( target.GetDamageState() == DamageState.Undamaged )
|
||||||
|
|||||||
Reference in New Issue
Block a user