Instead of that you should set up advanced attacker properly, and use AVOID AOE zones around any possible ramps/stairs/laders you have on your way
maybe something in here will help https://forums.bmega.net/showthread.php?tid=27882
maybe something in here will help https://forums.bmega.net/showthread.php?tid=27882