diff --git a/src/Modules/CalcSetup.lua b/src/Modules/CalcSetup.lua index f9ead33f..b7eb76d8 100644 --- a/src/Modules/CalcSetup.lua +++ b/src/Modules/CalcSetup.lua @@ -157,7 +157,7 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill) local added = false for j, extra in ipairs(mod) do -- if type conditional and start with WeaponSet then update the var to the current weapon set - if extra.type == "Condition" and extra.var:match("^WeaponSet") then + if extra.type == "Condition" and extra.var and extra.var:match("^WeaponSet") then mod[j].var = "WeaponSet".. node.allocMode added = true break