Effects only affect battling Pokémon

Moves such as Perish Song will no longer affect Pokémon who have
switched out, which fixes #12.