[z2144] Fix combination of fleeing and rooted behaviour

Special thanks to Cyberium for original problem research and idea of solution
Also improve 12214 to be more stable

(based on commit [12221] - b3bddea)

(based on commit [s1773] - a544e30)