From 4a9ca56cc2d96a834201d21ca5f1e8443974acd2 Mon Sep 17 00:00:00 2001 From: justjuangui Date: Sat, 18 Jan 2025 10:20:02 -0500 Subject: [PATCH] Fix nil mod type check Condition Weaponset mod type condition can have varList instead of var, this pr validate if we have var and the check if this condition if about weaponSet closes https://github.com/PathOfBuildingCommunity/PathOfBuilding-PoE2/issues/317 --- src/Modules/CalcSetup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/CalcSetup.lua b/src/Modules/CalcSetup.lua index f9ead33f1..b7eb76d8f 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