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