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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user