Restrictions on pathing around nodes affected by Intuitive Leap-like mechanics was too strict and didn't account for cases where the node was also connected to the tree. Additionally, fixes path distance calculations for paths going through nodes that are allocated but not connected.
Steps taken to verify a working solution:
Verified scenario showcased in issue correctly finds the shortest path
Verified path distance displays correctly when pathing through affectedByIntuitiveLeapLike nodes
Fixes #7642
Description of the problem being solved:
Restrictions on pathing around nodes affected by Intuitive Leap-like mechanics was too strict and didn't account for cases where the node was also connected to the tree. Additionally, fixes path distance calculations for paths going through nodes that are allocated but not connected.
Steps taken to verify a working solution:
affectedByIntuitiveLeapLike
nodesLink to a build that showcases this PR:
https://pobb.in/LBRXZb7F14NJ
Before screenshot:
After screenshot: