From f9bd9511f484a5ac4a9d9d7f312d6dc127da5227 Mon Sep 17 00:00:00 2001 From: Paliak <91493239+Paliak@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:31:45 +0200 Subject: [PATCH] FIX: penance branch crash if hit speed is nil (#7825) --- src/Modules/CalcPerform.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/CalcPerform.lua b/src/Modules/CalcPerform.lua index 987558e1d4..f3586b4dcb 100644 --- a/src/Modules/CalcPerform.lua +++ b/src/Modules/CalcPerform.lua @@ -1869,7 +1869,7 @@ function calcs.perform(env, skipEHP) end if activeSkill.activeEffect.grantedEffect.name == "Penance Brand of Dissipation" and activeSkill.skillPart == 2 then local activation_frequency, duration = getCachedOutputValue(env, activeSkill, "HitSpeed", "Duration") -- HitSpeed is the brand activation frequency - local ticks = m_min((m_floor(activation_frequency * duration) - 1), 19) + local ticks = m_max(m_min((m_floor((activation_frequency or 0) * duration) - 1), 19), 0) activeSkill.skillModList:NewMod("Multiplier:PenanceBrandofDissipationMaxStages", "BASE", ticks, "Base") activeSkill.skillModList:NewMod("Multiplier:PenanceBrandofDissipationStageAfterFirst", "BASE", ticks, "Base") end