Fix DamagedWithoutFoundation causing more damage than it should

Tick caused extra damage in addition to the damage in AddedToWorld,
which lead the actor to have less health than damageThreshold.
This commit is contained in:
abcdefg30
2015-12-20 16:35:19 +01:00
parent 4e6df6372d
commit c0206b18b0

View File

@@ -64,6 +64,8 @@ namespace OpenRA.Mods.D2k.Traits
var delta = health.HP - damageThreshold;
if (delta > 0)
health.InflictDamage(self, self.World.WorldActor, delta, null, false);
damageTicks = info.WeaponInfo.ReloadDelay;
}
public void Tick(Actor self)