Skip to content

Commit 037ee6b

Browse files
authored
Fix lua error when hovering Ascendant nodes (#6454)
1 parent 0f39b4d commit 037ee6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Classes/PassiveTreeView.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
293293
end
294294
elseif hoverNode and (hoverNode.isTattoo
295295
or (hoverNode.type == "Normal" and (hoverNode.dn == "Strength" or hoverNode.dn == "Dexterity" or hoverNode.dn == "Intelligence"))
296-
or (hoverNode.type == "Notable" and (hoverNode.sd[1]:match("+30 to Dexterity") or hoverNode.sd[1]:match("+30 to Strength") or hoverNode.sd[1]:match("+30 to Intelligence"))))
296+
or (hoverNode.type == "Notable" and #hoverNode.sd > 0 and (hoverNode.sd[1]:match("+30 to Dexterity") or hoverNode.sd[1]:match("+30 to Strength") or hoverNode.sd[1]:match("+30 to Intelligence"))))
297297
then
298298
build.treeTab:ModifyNodePopup(hoverNode, viewPort)
299299
build.buildFlag = true
@@ -1020,7 +1020,7 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build)
10201020
-- Tattoo Editing
10211021
if node and (node.isTattoo
10221022
or (node.type == "Normal" and (node.dn == "Strength" or node.dn == "Dexterity" or node.dn == "Intelligence"))
1023-
or (node.type == "Notable" and (node.sd[1]:match("+30 to Dexterity") or node.sd[1]:match("+30 to Strength") or node.sd[1]:match("+30 to Intelligence"))))
1023+
or (node.type == "Notable" and #node.sd > 0 and (node.sd[1]:match("+30 to Dexterity") or node.sd[1]:match("+30 to Strength") or node.sd[1]:match("+30 to Intelligence"))))
10241024
then
10251025
tooltip:AddSeparator(14)
10261026
tooltip:AddLine(14, colorCodes.TIP.."Tip: Right click to edit the tattoo for this node")

0 commit comments

Comments
 (0)