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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user