View difference between Paste ID: bxm9uXtW and A7vs6ijD
SHOW: | | - or go back to the newest paste.
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
		],
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 (sashCount > 1) {
17
					problems.push('You are limited to one Pokémon with the item Focus Sash.');
18-
					break;
18+
19
			}			
20
			 if (team.length > 4) problems.push('You may only bring up to four Pokémon.');
21-
			if (team.length > 4) problems.push('You may only bring up to four Pokémon.');
21+
22
		},
23
		onBegin: function () {
24
			this.p1.pokemon = this.p1.pokemon.slice(0, 2);
25
			this.p1.pokemonLeft = this.p1.pokemon.length;
26
			this.p2.pokemon = this.p2.pokemon.slice(0, 2);
27
			this.p2.pokemonLeft = this.p2.pokemon.length;
28
		}
29
	},