Spellcasting / staff pathing error

I’m not sure if it’s intended behavior, but it seems more like a pathing glitch. When you are trying to cast spells, or using a staff of sanctuary, and the target isn’t currently in range of your hero, and there are buildings between the hero and the target, the game doesn’t calculate the shortest/fastest movement to get in range and cast the spell/staff the target. In this video: https://youtu.be/5TIiDjsF9pI it shows the pathing glitch in a somewhat extreme example for blizzard, flamestrike, holy light, and staff of sanctuary. The hero instead of stepping forward and casting the spell, the hero paths around a bunch of trees and buildings as if it’s forcing a path that can avoid buildings in the path, even though spells can be cast over buildings. It has actually been an issue even before reforged was released.