I don't think Fly messes up the AI, Fern 'consecutively' switches Pokemon is something that really is programmed. You can also see this situation not only in Pokemon Reborn, but also in many Pokemon fangames using Pokemon Essentials.
Yeah, the Desert Field does soften Electric and Water moves, but only when the user is grounded.
Anyway, thank you for your reply ^^ .