Its just a conflict of interest with how the code was written. The bot wants to avoid the AoE, but it also really wants the shiny bubble/item in the middle of it. So you move to avoid the AoE, which you do get out of its range. Then the bot tries to continue moving and moves back into the AoE...