http://play.pokemonshowdown.com/battle-randombattle-211443496
In this battle, Zoroark appears as a Mantine and then has its Illusion broken. However, after switching out, the Zoroark then reappears as Heatmor throughout the rest of the battle. Is this supposed to happen?