Skip to content

Commit 4615245

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Crash when hovering over the PvP toggle while having Shaper Beam (#10244)
Fixes the crash when you hover over the PvP toggle while having the Shaper Beam skill selected The skill uses the `DamageOverTime` config so `output.enemySkillTime` is never set so when the PvP calcs expect to find it they instead get a nil crash Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 3cb8f05 commit 4615245

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Modules/CalcDefence.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3075,7 +3075,7 @@ function calcs.buildDefenceEstimations(env, actor)
30753075

30763076
-- pvp
30773077
if env.configInput.PvpScaling then
3078-
local PvpTvalue = output.enemySkillTime
3078+
local PvpTvalue = output.enemySkillTime or 1
30793079
local PvpMultiplier = (env.configInput.enemyMultiplierPvpDamage or 100) / 100
30803080

30813081
local PvpNonElemental1 = data.misc.PvpNonElemental1

0 commit comments

Comments
 (0)