If zoarark is last in a party, what would it disguise as as normally is goes as last in the party
If the Pokémon with Illusion was the last conscious non-Egg Pokémon in the party before being switched in, Illusion does not change its appearance.
Source