It's how the AI works. It's ugly, but I'm not going to revise the entire mucky movement system in the game.