Always make sure to be on the host actor when repairing
This commit is contained in:
@@ -19,17 +19,14 @@ namespace OpenRA.Mods.Common.Activities
|
||||
{
|
||||
public class Repair : Activity
|
||||
{
|
||||
readonly Health health;
|
||||
readonly RepairsUnits[] allRepairsUnits;
|
||||
readonly Target host;
|
||||
readonly WDist closeEnough;
|
||||
|
||||
int remainingTicks;
|
||||
Health health;
|
||||
bool played = false;
|
||||
|
||||
public Repair(Actor self, Actor host)
|
||||
: this(self, host, WDist.Zero) { }
|
||||
|
||||
public Repair(Actor self, Actor host, WDist closeEnough)
|
||||
{
|
||||
this.host = Target.FromActor(host);
|
||||
|
||||
Reference in New Issue
Block a user