Vendily

Female
Seen 8 Hours Ago
Posted 1 Week Ago
914 posts
4 Years
the botched line is this here
pokemon.species=[212]
instead of checking if the species is equal to 212, you've set it to an array containing 212. this breaks basically everything.
pokemon.species==212 is what you're looking for.
though you may want to move that whole if block inside the other one, else it'll always set all 212's to have the same moveset.