Skip to content

Commit

Permalink
FIX: penance branch crash if hit speed is nil (#7825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak authored Jul 22, 2024
1 parent fb2b2a6 commit f9bd951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9bd951

Please sign in to comment.