From feced5505a058f3477000d2136f1ac87dd69a59b Mon Sep 17 00:00:00 2001 From: Gustas Date: Mon, 25 Sep 2023 19:26:12 +0300 Subject: [PATCH] Remove the possibility of ReloadDelay becoming 0 with modifiers --- OpenRA.Mods.Common/Traits/Armament.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/Armament.cs b/OpenRA.Mods.Common/Traits/Armament.cs index b8c7496d7c..ea408e69c3 100644 --- a/OpenRA.Mods.Common/Traits/Armament.cs +++ b/OpenRA.Mods.Common/Traits/Armament.cs @@ -364,6 +364,9 @@ namespace OpenRA.Mods.Common.Traits { var modifiers = reloadModifiers.ToArray(); FireDelay = Util.ApplyPercentageModifiers(Weapon.ReloadDelay, modifiers); + if (FireDelay <= 0) + FireDelay = 1; + Burst = Weapon.Burst; if (Weapon.AfterFireSound != null && Weapon.AfterFireSound.Length > 0)