Zarel/Pokemon-Showdown — pull request #672 by Slayer95 (2014-02-20 00:03:50+00:00)
Title: Call validateTeam only once for a valid team

If the result of a validation for a format is positive, it will be saved to avoid the repetition of the task for the next battle.
This optimization is based on the assumption that the majority of the userbase battles in a single format and with a single team.