funcEscapeDig() and funcEscapePortal() below it, are causing Geo to get stuck in trees/awkward spots in some cases. Consider upgrading these to match my Wretched Hag's blink retreat code that can be found here: https://github.com/s2games/Heroes-of-Newerth-Bots/blob/Community/bots/wretchedhag/WretchedHag_main.lua#L603-L694