Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
During turn 13 of this battle Espeon's sprite is replaced with another Latios sprite in the team section. Might be due to Zoroark.
http://replay.pokemonshowdown.com/oususpecttest-142970735
I forgot to save the replay but Magic Guard on Clefairy prevented it from being put to sleep by Yawn from Slowbro. It stayed in a perpetual drowsy state.