Make Repair activity host actor the attacker for repairs.

This commit is contained in:
atlimit8
2017-03-14 23:41:38 -05:00
parent 8e7de1a4fa
commit aa8c434668

View File

@@ -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);