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

Commit 4520ac8

Browse files
Merge pull request #7 from justjuangui/demo
Fix crash when allocation some nodes with weapon set passives
2 parents 38edb8c + 4a9ca56 commit 4520ac8

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
@@ -173,7 +173,7 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
173173
local added = false
174174
for j, extra in ipairs(mod) do
175175
-- if type conditional and start with WeaponSet then update the var to the current weapon set
176-
if extra.type == "Condition" and extra.var:match("^WeaponSet") then
176+
if extra.type == "Condition" and extra.var and extra.var:match("^WeaponSet") then
177177
mod[j].var = "WeaponSet".. node.allocMode
178178
added = true
179179
break

0 commit comments

Comments
 (0)