#164 engineer cursor on friendly critical buildings
This commit is contained in:
@@ -39,7 +39,10 @@ namespace OpenRA.Mods.RA
|
||||
// todo: other bits
|
||||
if (underCursor.Owner == null) return null; // don't allow capturing of bridges, etc.
|
||||
|
||||
return new Order(underCursor.Health <= EngineerDamage ? "Capture" : "Infiltrate",
|
||||
var isCapture = underCursor.Health <= EngineerDamage &&
|
||||
self.Owner.Stances[underCursor.Owner] != Stance.Ally;
|
||||
|
||||
return new Order(isCapture ? "Capture" : "Infiltrate",
|
||||
self, underCursor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user