From c0206b18b0121679d8a6d3d37b87be5ce5212981 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 20 Dec 2015 16:35:19 +0100 Subject: [PATCH] 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. --- OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs b/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs index 6d65f91085..5035746d5e 100644 --- a/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs +++ b/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs @@ -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)