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

Commit c2f5e36

Browse files
author
justjuangui
committed
Fix hover of modified values in Calcs panel from Witch
1 parent b191ea1 commit c2f5e36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Classes/CalcBreakdownControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
405405
local nodeId = row.mod.source:match("Tree:(%d+)")
406406
if nodeId then
407407
local nodeIdNumber = tonumber(nodeId)
408-
local node = build.spec.nodes[nodeIdNumber] or build.spec.tree.nodes[nodeIdNumber]
408+
local node = build.spec.nodes[nodeIdNumber] or build.spec.switchableNodes[nodeIdNumber] or build.spec.tree.nodes[nodeIdNumber]
409409
row.sourceName = node.dn
410410
row.sourceNameNode = node
411411
end

src/Classes/PassiveSpec.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@ function PassiveSpecClass:BuildAllDependsAndPaths()
958958
local visited = { }
959959
local attributes = { "Dexterity", "Intelligence", "Strength" }
960960
-- Check all nodes for other nodes which depend on them (i.e. are only connected to the tree through that node)
961+
self.switchableNodes = { }
961962
for id, node in pairs(self.nodes) do
962963
node.depends = wipeTable(node.depends)
963964
node.intuitiveLeapLikesAffecting = { }
@@ -968,6 +969,7 @@ function PassiveSpecClass:BuildAllDependsAndPaths()
968969
local nodeToReplace = self.tree.nodes[id]
969970
if self.tree.nodes[id].isSwitchable and self.tree.nodes[id].options[self.curClassName] then
970971
nodeToReplace = self.tree.nodes[id].options[self.curClassName]
972+
self.switchableNodes[nodeToReplace.id] = node
971973
end
972974
self:ReplaceNode(node, nodeToReplace)
973975
end

0 commit comments

Comments
 (0)