diff --git a/OpenRA.Mods.RA/EngineerCapture.cs b/OpenRA.Mods.RA/EngineerCapture.cs index 63d1287381..6459410831 100644 --- a/OpenRA.Mods.RA/EngineerCapture.cs +++ b/OpenRA.Mods.RA/EngineerCapture.cs @@ -34,19 +34,22 @@ namespace OpenRA.Mods.RA var isCapture = underCursor.Health <= self.Info.Traits.Get().EngineerDamage && self.Owner.Stances[underCursor.Owner] != Stance.Ally; - return new Order(isCapture ? "Capture" : "Infiltrate", + var isHeal = self.Owner.Stances[underCursor.Owner] == Stance.Ally; + return new Order(isCapture ? "Capture" : + isHeal ? "Repair" : "Infiltrate", self, underCursor); } public string CursorForOrderString(string s, Actor a, int2 location) { return (s == "Infiltrate") ? "enter" : - (s == "Capture") ? "capture" : null; + (s == "Repair") ? "goldwrench" : + (s == "Capture") ? "capture" : null; } public void ResolveOrder(Actor self, Order order) { - if (order.OrderString == "Infiltrate" || order.OrderString == "Capture") + if (order.OrderString == "Infiltrate" || order.OrderString == "Capture" || order.OrderString == "Repair") { self.CancelActivity(); self.QueueActivity(new Move(order.TargetActor, 1)); diff --git a/mods/cnc/sequences.xml b/mods/cnc/sequences.xml index 3b38e02c47..d544aa968b 100644 --- a/mods/cnc/sequences.xml +++ b/mods/cnc/sequences.xml @@ -47,6 +47,8 @@ + +