Change your preferences here.
All Pokémon on the field faint after 3 turns. Its effect on a Pokémon is negated when it switches out.