Don't allow engineers to repair neutral structures, it conflicts with capturing.
This commit is contained in:
@@ -66,6 +66,9 @@ namespace OpenRA.Mods.RA
|
|||||||
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