Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- name: "2v2 Doubles",
- section: 'Other Metagames',
- gameType: 'doubles',
- ruleset: ['Pokemon', 'Standard', 'Swagger Clause', 'Team Preview'],
- banlist: ['Arceus', 'Deoxys-Attack', 'Dialga', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh',
- 'Kyogre', 'Kyurem-White', 'Lugia', 'Mewtwo', 'Palkia', 'Rayquaza', 'Reshiram', 'Xerneas', 'Yveltal',
- 'Zekrom', 'Soul Dew', 'Perish Song', 'Dark Void', 'Explosion', 'Self Destruct'
- ],
- validateTeam: function (team, format) {
- var problems = [];
- var sashCount = 0;
- for (var i = 0; i < team.length; i++) {
- if (team[i].item == 'Focus Sash') sashCount++;
- if (sashCount > 1) {
- problems.push("You are limited to one Pokémon with the item Focus Sash.");
- break;
- }
- }
- if (team.length > 4) problems.push("You may only bring up to four Pokémon.");
- return problems;
- },
- onBegin: function () {
- this.p1.pokemon = this.p1.pokemon.slice(0, 2);
- this.p1.pokemonLeft = this.p1.pokemon.length;
- this.p2.pokemon = this.p2.pokemon.slice(0, 2);
- this.p2.pokemonLeft = this.p2.pokemon.length;
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement