Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 4a9ca56

Browse files
author
justjuangui
committed
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 PathOfBuildingCommunity/PathOfBuilding-PoE2#317
1 parent f685f69 commit 4a9ca56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
157157
local added = false
158158
for j, extra in ipairs(mod) do
159159
-- if type conditional and start with WeaponSet then update the var to the current weapon set
160-
if extra.type == "Condition" and extra.var:match("^WeaponSet") then
160+
if extra.type == "Condition" and extra.var and extra.var:match("^WeaponSet") then
161161
mod[j].var = "WeaponSet".. node.allocMode
162162
added = true
163163
break

0 commit comments

Comments
 (0)