Always make sure to be on the host actor when repairing
This commit is contained in:
@@ -114,7 +114,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (CanRearmAt(order.TargetActor) && CanRearm())
|
||||
self.QueueActivity(new Rearm(self));
|
||||
|
||||
self.QueueActivity(new Repair(self, order.TargetActor));
|
||||
// Add a CloseEnough range of 512 to ensure we're at the host actor
|
||||
self.QueueActivity(new Repair(self, order.TargetActor, new WDist(512)));
|
||||
|
||||
var rp = order.TargetActor.TraitOrDefault<RallyPoint>();
|
||||
if (rp != null)
|
||||
|
||||
Reference in New Issue
Block a user