Skip to content

Commit 885e780

Browse files
committed
fix hover error on exclusive jewel nodes after cleanup
1 parent 23a6169 commit 885e780

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/PassiveTreeView.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,8 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build)
13791379
local cAllocated = self.compareSpec.allocNodes and self.compareSpec.allocNodes[node.id]
13801380
if cJewel and cAllocated then
13811381
-- Show the compare build's jewel tooltip instead of generic socket info
1382-
cItemsTab:AddItemTooltip(tooltip, cJewel, { nodeId = node.id })
1382+
local socket = build.itemsTab:GetSocketAndJewelForNodeID(node.id)
1383+
cItemsTab:AddItemTooltip(tooltip, cJewel, socket)
13831384
tooltip:AddSeparator(14)
13841385
tooltip:AddLine(14, colorCodes.DEXTERITY .. "Jewel from compared build")
13851386
tooltip:AddLine(14, colorCodes.TIP.."Tip: Hold Shift or Ctrl to hide this tooltip.")
@@ -1607,7 +1608,7 @@ function PassiveTreeViewClass:AddCompareNodeTooltip(tooltip, node, build)
16071608
local cJewel = self:GetCompareJewel(node.id)
16081609
local cItemsTab = self.compareSpec.build and self.compareSpec.build.itemsTab
16091610
if cJewel and cItemsTab then
1610-
cItemsTab:AddItemTooltip(tooltip, cJewel, { nodeId = node.id })
1611+
cItemsTab:AddItemTooltip(tooltip, cJewel, nil)
16111612
else
16121613
self:AddCompareNodeName(tooltip, node)
16131614
end

0 commit comments

Comments
 (0)