Merge pull request #11513 from GraionDilach/idamage

Remove passing the warheads from DamageWarhead to AttackInfo.
This commit is contained in:
Matthias Mailänder
2016-07-16 14:26:43 +02:00
committed by GitHub
30 changed files with 69 additions and 64 deletions

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Traits
// Actors start with maximum damage applied
var delta = health.HP - damageThreshold;
if (delta > 0)
health.InflictDamage(self, self.World.WorldActor, delta, null, false);
health.InflictDamage(self, self.World.WorldActor, new Damage(delta), false);
}
public void Tick(Actor self)