Update formats.js

Forgot the 1v1 part in Gen III 1v1
This commit is contained in:
The Immortal 2014-08-31 23:14:08 +04:00
parent 12dbe18fd8
commit 9e76c1bf3b

View File

@ -371,7 +371,13 @@ exports.Formats = [
mod: 'gen3',
ruleset: ['Pokemon', 'Standard'],
banlist: ['Uber', 'Smeargle + Ingrain']
banlist: ['Uber', 'Smeargle + Ingrain'],
onBegin: function () {
this.p1.pokemon = this.p1.pokemon.slice(0, 1);
this.p1.pokemonLeft = this.p1.pokemon.length;
this.p2.pokemon = this.p2.pokemon.slice(0, 1);
this.p2.pokemonLeft = this.p2.pokemon.length;
}
},
{
name: "CAP",
@ -413,12 +419,6 @@ exports.Formats = [
name: "1v1",
section: 'Other Metagames',
onBegin: function () {
this.p1.pokemon = this.p1.pokemon.slice(0, 1);
this.p1.pokemonLeft = this.p1.pokemon.length;
this.p2.pokemon = this.p2.pokemon.slice(0, 1);
this.p2.pokemonLeft = this.p2.pokemon.length;
},
ruleset: ['Pokemon', 'Standard', 'Swagger Clause', 'Team Preview 1v1'],
banlist: ['Arceus', 'Blaziken', 'Darkrai', 'Deoxys', 'Deoxys-Attack', 'Dialga', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh',
'Kyogre', 'Kyurem-White', 'Lugia', 'Mewtwo', 'Palkia', 'Rayquaza', 'Reshiram', 'Shaymin-Sky', 'Xerneas', 'Yveltal',
@ -426,6 +426,12 @@ exports.Formats = [
],
validateTeam: function (team, format) {
if (team.length > 3) return ['You may only bring up to three Pokémon.'];
},
onBegin: function () {
this.p1.pokemon = this.p1.pokemon.slice(0, 1);
this.p1.pokemonLeft = this.p1.pokemon.length;
this.p2.pokemon = this.p2.pokemon.slice(0, 1);
this.p2.pokemonLeft = this.p2.pokemon.length;
}
},
{