Make Repair activity host actor the attacker for repairs.
This commit is contained in:
@@ -84,7 +84,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.InflictDamage(self, new Damage(-hpToRepair));
|
self.InflictDamage(host.Actor, new Damage(-hpToRepair));
|
||||||
|
|
||||||
foreach (var depot in host.Actor.TraitsImplementing<INotifyRepair>())
|
foreach (var depot in host.Actor.TraitsImplementing<INotifyRepair>())
|
||||||
depot.Repairing(host.Actor, self);
|
depot.Repairing(host.Actor, self);
|
||||||
|
|||||||
Reference in New Issue
Block a user