Fix tooltip showing pathing differences for nodes affected by II/IL (#8921)

Hovering over an unallocated node in radius of Impossible Escape or
Intuitive Leap currently shows difference for taking a path from the
class start which it doesn't require and won't take on click.

This is confusing and not helpful because highlight for the pathing
is being suppressed already.
This commit is contained in:
Nikita Kniazev
2025-08-04 12:55:24 +03:00
committed by GitHub
parent 03a8121ea3
commit b5e29d5446

View File

@@ -1146,7 +1146,7 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build)
end
end
local count = build:AddStatComparesToTooltip(tooltip, calcBase, nodeOutput, realloc and "^7Reallocating this node will give you:" or node.alloc and "^7Unallocating this node will give you:" or isGranted and "^7This node is granted by an item. Removing it will give you:" or "^7Allocating this node will give you:")
if pathLength > 1 and not isGranted then
if pathLength > 1 and not isGranted and (#node.intuitiveLeapLikesAffecting == 0 or node.alloc) then
count = count + build:AddStatComparesToTooltip(tooltip, calcBase, pathOutput, node.alloc and "^7Unallocating this node and all nodes depending on it will give you:" or "^7Allocating this node and all nodes leading to it will give you:", pathLength)
end
if count == 0 then