Skip to content

Commit 4f8430a

Browse files
committed
Add a warning message when trying to select a keystone with a weapon set
1 parent b7b66a8 commit 4f8430a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Classes/PassiveTreeView.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,14 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build, incSmallPassi
14021402
tooltip:AddLine(14, "^7"..#node.depends .. " points gained from unallocating these nodes")
14031403
tooltip:AddLine(14, colorCodes.TIP)
14041404
end
1405+
1406+
-- Warning for keystones when weapon set is selected
1407+
if node.type == "Keystone" and not node.alloc and node.path and build.spec.allocMode > 0 then
1408+
tooltip:AddSeparator(14)
1409+
tooltip:AddLine(14, colorCodes.WARNING.."Cannot allocate keystones while weapon set " .. build.spec.allocMode .. " is selected")
1410+
tooltip:AddLine(14, colorCodes.TIP.."Tip: Switch to main tree (Alt+scroll) to allocate keystones")
1411+
end
1412+
14051413
if node.type == "Socket" then
14061414
tooltip:AddLine(14, colorCodes.TIP.."Tip: Hold Shift or Ctrl to hide this tooltip.")
14071415
else

0 commit comments

Comments
 (0)