From 9e76c1bf3b8b4ed6d69ce73abaaf2c9c8fa1e286 Mon Sep 17 00:00:00 2001 From: The Immortal Date: Sun, 31 Aug 2014 23:14:08 +0400 Subject: [PATCH] Update formats.js Forgot the 1v1 part in Gen III 1v1 --- config/formats.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/config/formats.js b/config/formats.js index 5978ca42b3..9daed225fc 100644 --- a/config/formats.js +++ b/config/formats.js @@ -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; } }, {