Zarel/Pokemon-Showdown — pull request #1145 by Pikachuun (2014-08-17 16:01:54+00:00)
Title: Enforcing the 510 EV limit in Balanced Hackmons

I have tested this in several formats (Including Balanced Hackmons and Custom Game), and it works without any issue. I've even fixed the bug where the 510 ev message displays twice!

I've moved the EV block from team-validator.js to rulesets.js, and changed said block a bit to prevent it from throwing any errors or resulting in any bugs. This pull request and commit is effectively that.