Skip to content

Commit e451f42

Browse files
author
LocalIdentity
committed
Fix Crash when allocating Perfect Agony while unarmed
1 parent 5cd84e0 commit e451f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/CalcOffence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3568,7 +3568,7 @@ function calcs.offence(env, actor, activeSkill)
35683568
local source, output, cfg, breakdown = pass.source, pass.output, pass.cfg, pass.breakdown
35693569

35703570
do -- Perfect Agony
3571-
local handCondition = pass.label == "Off Hand" and { type = "Condition", var = "OffHandAttack" } or pass.label == "Main Hand" and { type = "Condition", var = "MainHandAttack" }
3571+
local handCondition = pass.label == "Off Hand" and { type = "Condition", var = "OffHandAttack" } or pass.label == "Main Hand" and { type = "Condition", var = "MainHandAttack" } or nil
35723572

35733573
if skillModList:Sum("BASE", nil, "CritMultiplierAppliesToDegen") > 0 then
35743574
for i, value in ipairs(skillModList:Tabulate("BASE", cfg, "CritMultiplier")) do

0 commit comments

Comments
 (0)