SHOW:
|
|
- or go back to the newest paste.
| 1 | - | {
|
| 1 | + | {
|
| 2 | name: "2v2 Doubles", | |
| 3 | section: 'Other Metagames', | |
| 4 | ||
| 5 | gameType: 'doubles', | |
| 6 | ruleset: ['Pokemon', 'Standard', 'Swagger Clause', 'Team Preview'], | |
| 7 | banlist: ['Arceus', 'Deoxys-Attack', 'Dialga', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', | |
| 8 | 'Kyogre', 'Kyurem-White', 'Lugia', 'Mewtwo', 'Palkia', 'Rayquaza', 'Reshiram', 'Xerneas', 'Yveltal', | |
| 9 | 'Zekrom', 'Soul Dew', 'Perish Song', 'Dark Void', 'Explosion', 'Self-Destruct' | |
| 10 | - | 'Zekrom', 'Soul Dew', 'Perish Song', 'Dark Void', 'Explosion', 'Self Destruct' |
| 10 | + | |
| 11 | validateTeam: function (team, format) {
| |
| 12 | var sashCount = 0; | |
| 13 | var problems = []; | |
| 14 | for (var i = 0; i < team.length; i++) {
| |
| 15 | if (team[i].item === 'Focus Sash') sashCount++; | |
| 16 | - | if (team[i].item == 'Focus Sash') sashCount++; |
| 16 | + | |
| 17 | problems.push('You are limited to one Pokémon with the item Focus Sash.');
| |
| 18 | - | problems.push("You are limited to one Pokémon with the item Focus Sash.");
|
| 18 | + | |
| 19 | } | |
| 20 | } | |
| 21 | - | } |
| 21 | + | if (team.length > 4) problems.push('You may only bring up to four Pokémon.');
|
| 22 | - | if (team.length > 4) problems.push("You may only bring up to four Pokémon.");
|
| 22 | + | return problems; |
| 23 | - | return problems; |
| 23 | + | |
| 24 | onBegin: function () {
| |
| 25 | this.p1.pokemon = this.p1.pokemon.slice(0, 2); | |
| 26 | this.p1.pokemonLeft = this.p1.pokemon.length; | |
| 27 | this.p2.pokemon = this.p2.pokemon.slice(0, 2); | |
| 28 | this.p2.pokemonLeft = this.p2.pokemon.length; | |
| 29 | } | |
| 30 | }, |