Skip to content

Commit 9858da4

Browse files
committed
Always assign keystones to global tree (allocMode=0)
This ensures that even for unexpected selection of keystones on a specific weapon set due to old or modified import codes, the keystones will always remain assigned to the global tree.
1 parent a29c4a4 commit 9858da4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/PassiveSpec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,12 +703,12 @@ function PassiveSpecClass:AllocNode(node, altPath)
703703
-- Allocate all nodes along the path
704704
if #node.intuitiveLeapLikesAffecting > 0 then
705705
node.alloc = true
706-
node.allocMode = node.ascendancyName and 0 or self.allocMode
706+
node.allocMode = (node.ascendancyName or node.type == "Keystone") and 0 or self.allocMode
707707
self.allocNodes[node.id] = node
708708
else
709709
for _, pathNode in ipairs(altPath or node.path) do
710710
pathNode.alloc = true
711-
pathNode.allocMode = node.ascendancyName and 0 or self.allocMode
711+
pathNode.allocMode = (node.ascendancyName or pathNode.type == "Keystone") and 0 or self.allocMode
712712
-- set path attribute nodes to latest chosen attribute or default to Strength if allocating before choosing an attribute
713713
if pathNode.isAttribute then
714714
self:SwitchAttributeNode(pathNode.id, self.attributeIndex or 1)

0 commit comments

Comments
 (0)