Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Classes/CalcBreakdownControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
local nodeId = row.mod.source:match("Tree:(%d+)")
if nodeId then
local nodeIdNumber = tonumber(nodeId)
local node = build.spec.nodes[nodeIdNumber] or build.spec.tree.nodes[nodeIdNumber]
local node = build.spec.nodes[nodeIdNumber] or build.spec.switchableNodes[nodeIdNumber] or build.spec.tree.nodes[nodeIdNumber]
row.sourceName = node.dn
row.sourceNameNode = node
end
Expand Down
2 changes: 2 additions & 0 deletions src/Classes/PassiveSpec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ function PassiveSpecClass:BuildAllDependsAndPaths()
local visited = { }
local attributes = { "Dexterity", "Intelligence", "Strength" }
-- Check all nodes for other nodes which depend on them (i.e. are only connected to the tree through that node)
self.switchableNodes = { }
for id, node in pairs(self.nodes) do
node.depends = wipeTable(node.depends)
node.intuitiveLeapLikesAffecting = { }
Expand All @@ -968,6 +969,7 @@ function PassiveSpecClass:BuildAllDependsAndPaths()
local nodeToReplace = self.tree.nodes[id]
if self.tree.nodes[id].isSwitchable and self.tree.nodes[id].options[self.curClassName] then
nodeToReplace = self.tree.nodes[id].options[self.curClassName]
self.switchableNodes[nodeToReplace.id] = node
end
self:ReplaceNode(node, nodeToReplace)
end
Expand Down
Loading