mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-01 05:07:01 -05:00
This was previously not enforced because we used `:1` in too many places, but those places seem to all be refactored out at this point.
802 lines
37 KiB
JavaScript
802 lines
37 KiB
JavaScript
// Note: These are the rules that formats use
|
|
// The list of formats is stored in config/formats.js
|
|
|
|
'use strict';
|
|
|
|
exports.BattleFormats = {
|
|
|
|
// Rulesets
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
standard: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Standard',
|
|
desc: ["The standard ruleset for all offical Smogon singles tiers (Ubers, OU, etc.)"],
|
|
ruleset: ['Sleep Clause Mod', 'Species Clause', 'Nickname Clause', 'OHKO Clause', 'Moody Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],
|
|
banlist: ['Unreleased', 'Illegal'],
|
|
},
|
|
standardnext: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Standard NEXT',
|
|
desc: ["The standard ruleset for the NEXT mod"],
|
|
ruleset: ['Sleep Clause Mod', 'Species Clause', 'Nickname Clause', 'OHKO Clause', 'HP Percentage Mod', 'Cancel Mod'],
|
|
banlist: ['Illegal', 'Soul Dew'],
|
|
},
|
|
standardubers: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Standard Ubers',
|
|
desc: ["The standard ruleset for [Gen 5] Ubers"],
|
|
ruleset: ['Sleep Clause Mod', 'Species Clause', 'Nickname Clause', 'Moody Clause', 'OHKO Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],
|
|
banlist: ['Unreleased', 'Illegal'],
|
|
},
|
|
standardgbu: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Standard GBU',
|
|
desc: ["The standard ruleset for all official in-game Pokémon tournaments and Battle Spot"],
|
|
ruleset: ['Species Clause', 'Nickname Clause', 'Item Clause', 'Team Preview', 'Cancel Mod'],
|
|
banlist: ['Unreleased', 'Illegal', 'Battle Bond',
|
|
'Mewtwo', 'Mew',
|
|
'Lugia', 'Ho-Oh', 'Celebi',
|
|
'Kyogre', 'Groudon', 'Rayquaza', 'Jirachi', 'Deoxys',
|
|
'Dialga', 'Palkia', 'Giratina', 'Phione', 'Manaphy', 'Darkrai', 'Shaymin', 'Arceus',
|
|
'Victini', 'Reshiram', 'Zekrom', 'Kyurem', 'Keldeo', 'Meloetta', 'Genesect',
|
|
'Xerneas', 'Yveltal', 'Zygarde', 'Diancie', 'Hoopa', 'Volcanion',
|
|
'Cosmog', 'Cosmoem', 'Solgaleo', 'Lunala', 'Necrozma', 'Magearna', 'Marshadow', 'Zeraora',
|
|
],
|
|
onValidateSet(set, format) {
|
|
if (this.gen < 7 && toId(set.item) === 'souldew') {
|
|
return [`${set.name || set.species} has Soul Dew, which is banned in ${format.name}.`];
|
|
}
|
|
},
|
|
},
|
|
minimalgbu: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Minimal GBU',
|
|
desc: ["The standard ruleset for official tournaments, but without Restricted Legendary bans"],
|
|
ruleset: ['Species Clause', 'Nickname Clause', 'Item Clause', 'Cancel Mod'],
|
|
banlist: ['Unreleased', 'Illegal', 'Battle Bond',
|
|
'Mew',
|
|
'Celebi',
|
|
'Jirachi', 'Deoxys',
|
|
'Phione', 'Manaphy', 'Darkrai', 'Shaymin', 'Arceus',
|
|
'Victini', 'Keldeo', 'Meloetta', 'Genesect',
|
|
'Diancie', 'Hoopa', 'Volcanion',
|
|
'Magearna', 'Marshadow',
|
|
],
|
|
onValidateSet(set, format) {
|
|
if (this.gen < 7 && toId(set.item) === 'souldew') {
|
|
return [`${set.name || set.species} has Soul Dew, which is banned in ${format.name}.`];
|
|
}
|
|
},
|
|
},
|
|
standarddoubles: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Standard Doubles',
|
|
desc: ["The standard ruleset for all official Smogon doubles tiers"],
|
|
ruleset: ['Species Clause', 'Nickname Clause', 'OHKO Clause', 'Moody Clause', 'Evasion Abilities Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],
|
|
banlist: ['Unreleased', 'Illegal'],
|
|
},
|
|
pokemon: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Pokemon',
|
|
desc: ["The foundational rules for any and all formats based on in-game mechanics (everything but Custom Game)"],
|
|
onValidateTeam: function (team, format) {
|
|
let problems = [];
|
|
if (team.length > 6) problems.push('Your team has more than six Pok\u00E9mon.');
|
|
// ----------- legality line ------------------------------------------
|
|
if (!format || !this.getRuleTable(format).has('-illegal')) return problems;
|
|
// everything after this line only happens if we're doing legality enforcement
|
|
let kyurems = 0;
|
|
let ndm = 0;
|
|
let ndw = 0;
|
|
for (let i = 0; i < team.length; i++) {
|
|
if (team[i].species === 'Kyurem-White' || team[i].species === 'Kyurem-Black') {
|
|
if (kyurems > 0) {
|
|
problems.push('You cannot have more than one Kyurem-Black/Kyurem-White.');
|
|
break;
|
|
}
|
|
kyurems++;
|
|
}
|
|
if (team[i].species === 'Necrozma-Dusk-Mane') {
|
|
if (ndm > 0) {
|
|
problems.push('You cannot have more than one Necrozma-Dusk-Mane.');
|
|
break;
|
|
}
|
|
ndm++;
|
|
}
|
|
if (team[i].species === 'Necrozma-Dawn-Wings') {
|
|
if (ndw > 0) {
|
|
problems.push('You cannot have more than one Necrozma-Dawn-Wings.');
|
|
break;
|
|
}
|
|
ndw++;
|
|
}
|
|
}
|
|
return problems;
|
|
},
|
|
onChangeSet: function (set, format) {
|
|
let item = this.getItem(set.item);
|
|
let template = this.getTemplate(set.species);
|
|
let problems = [];
|
|
let totalEV = 0;
|
|
let allowCAP = !!(format && this.getRuleTable(format).has('allowcap'));
|
|
|
|
if (set.species === set.name) delete set.name;
|
|
if (template.gen > this.gen) {
|
|
problems.push(set.species + ' does not exist in gen ' + this.gen + '.');
|
|
}
|
|
if ((template.num === 25 || template.num === 172) && template.tier === 'Illegal') {
|
|
problems.push(set.species + ' does not exist outside of gen ' + template.gen + '.');
|
|
}
|
|
let ability = {};
|
|
if (set.ability) {
|
|
ability = this.getAbility(set.ability);
|
|
if (ability.gen > this.gen) {
|
|
problems.push(ability.name + ' does not exist in gen ' + this.gen + '.');
|
|
}
|
|
}
|
|
if (set.moves) {
|
|
for (let i = 0; i < set.moves.length; i++) {
|
|
let move = this.getMove(set.moves[i]);
|
|
if (move.gen > this.gen) {
|
|
problems.push(move.name + ' does not exist in gen ' + this.gen + '.');
|
|
} else if (!allowCAP && move.isNonstandard) {
|
|
problems.push(move.name + ' does not exist.');
|
|
}
|
|
}
|
|
}
|
|
if (item.gen > this.gen) {
|
|
problems.push(item.name + ' does not exist in gen ' + this.gen + '.');
|
|
}
|
|
if (set.moves && set.moves.length > 4) {
|
|
problems.push((set.name || set.species) + ' has more than four moves.');
|
|
}
|
|
if (set.level && set.level > 100) {
|
|
problems.push((set.name || set.species) + ' is higher than level 100.');
|
|
}
|
|
|
|
if (!allowCAP || !template.tier.startsWith('CAP')) {
|
|
if (template.isNonstandard) {
|
|
problems.push(set.species + ' does not exist.');
|
|
}
|
|
}
|
|
|
|
if (!allowCAP && ability.isNonstandard) {
|
|
problems.push(ability.name + ' does not exist.');
|
|
}
|
|
|
|
if (item.isNonstandard) {
|
|
if (item.isNonstandard === 'gen2') {
|
|
problems.push(item.name + ' does not exist outside of gen 2.');
|
|
} else if (!allowCAP) {
|
|
problems.push(item.name + ' does not exist.');
|
|
}
|
|
}
|
|
|
|
for (let k in set.evs) {
|
|
if (typeof set.evs[k] !== 'number' || set.evs[k] < 0) {
|
|
set.evs[k] = 0;
|
|
}
|
|
totalEV += set.evs[k];
|
|
}
|
|
// In gen 6, it is impossible to battle other players with pokemon that break the EV limit
|
|
if (totalEV > 510 && this.gen === 6) {
|
|
problems.push((set.name || set.species) + " has more than 510 total EVs.");
|
|
}
|
|
|
|
// ----------- legality line ------------------------------------------
|
|
if (!this.getRuleTable(format).has('-illegal')) return problems;
|
|
// everything after this line only happens if we're doing legality enforcement
|
|
|
|
// only in gen 1 and 2 it was legal to max out all EVs
|
|
if (this.gen >= 3 && totalEV > 510) {
|
|
problems.push((set.name || set.species) + " has more than 510 total EVs.");
|
|
}
|
|
|
|
if (template.gender) {
|
|
if (set.gender !== template.gender) {
|
|
set.gender = template.gender;
|
|
}
|
|
} else {
|
|
if (set.gender !== 'M' && set.gender !== 'F') {
|
|
set.gender = undefined;
|
|
}
|
|
}
|
|
|
|
// Legendary Pokemon must have at least 3 perfect IVs in gen 6
|
|
let baseTemplate = this.getTemplate(template.baseSpecies);
|
|
if (set.ivs && this.gen >= 6 && (baseTemplate.gen >= 6 || format.requirePentagon) && (template.eggGroups[0] === 'Undiscovered' || template.species === 'Manaphy') && !template.prevo && !template.nfe &&
|
|
// exceptions
|
|
template.species !== 'Unown' && template.baseSpecies !== 'Pikachu' && (template.baseSpecies !== 'Diancie' || !set.shiny)) {
|
|
let perfectIVs = 0;
|
|
for (let i in set.ivs) {
|
|
if (set.ivs[i] >= 31) perfectIVs++;
|
|
}
|
|
let reason = (format.requirePentagon ? " and this format requires gen " + this.gen + " Pokémon" : " in gen 6");
|
|
if (perfectIVs < 3) problems.push((set.name || set.species) + " must have at least three perfect IVs because it's a legendary" + reason + ".");
|
|
}
|
|
|
|
// limit one of each move
|
|
let moves = [];
|
|
if (set.moves) {
|
|
let hasMove = {};
|
|
for (let i = 0; i < set.moves.length; i++) {
|
|
let move = this.getMove(set.moves[i]);
|
|
let moveid = move.id;
|
|
if (hasMove[moveid]) continue;
|
|
hasMove[moveid] = true;
|
|
moves.push(set.moves[i]);
|
|
}
|
|
}
|
|
set.moves = moves;
|
|
|
|
let battleForme = template.battleOnly && template.species;
|
|
if (battleForme) {
|
|
if (template.requiredAbility && set.ability !== template.requiredAbility) {
|
|
problems.push("" + template.species + " transforms in-battle with " + template.requiredAbility + "."); // Darmanitan-Zen, Zygarde-Complete
|
|
}
|
|
if (template.requiredItems) {
|
|
if (template.species === 'Necrozma-Ultra') {
|
|
problems.push(`Necrozma-Ultra must start the battle as Necrozma-Dawn-Wings or Necrozma-Dusk-Mane holding Ultranecrozium Z.`); // Necrozma-Ultra transforms from one of two formes, and neither one is the base forme
|
|
} else if (!template.requiredItems.includes(item.name)) {
|
|
problems.push(`${template.species} transforms in-battle with ${Chat.plural(template.requiredItems.length, "either ") + template.requiredItems.join(" or ")}.`); // Mega or Primal
|
|
}
|
|
}
|
|
if (template.requiredMove && set.moves.indexOf(toId(template.requiredMove)) < 0) {
|
|
problems.push(`${template.species} transforms in-battle with ${template.requiredMove}.`); // Meloetta-Pirouette, Rayquaza-Mega
|
|
}
|
|
if (!format.noChangeForme) set.species = template.baseSpecies; // Fix battle-only forme
|
|
} else {
|
|
if (template.requiredAbility && set.ability !== template.requiredAbility) {
|
|
problems.push(`${(set.name || set.species)} needs the ability ${template.requiredAbility}.`); // No cases currently.
|
|
}
|
|
if (template.requiredItems && !template.requiredItems.includes(item.name)) {
|
|
problems.push(`${(set.name || set.species)} needs to hold ${Chat.plural(template.requiredItems.length, "either ") + template.requiredItems.join(" or ")}.`); // Memory/Drive/Griseous Orb/Plate/Z-Crystal - Forme mismatch
|
|
}
|
|
if (template.requiredMove && set.moves.indexOf(toId(template.requiredMove)) < 0) {
|
|
problems.push(`${(set.name || set.species)} needs to have the move ${template.requiredMove}.`); // Keldeo-Resolute
|
|
}
|
|
|
|
// Mismatches between the set forme (if not base) and the item signature forme will have been rejected already.
|
|
// It only remains to assign the right forme to a set with the base species (Arceus/Genesect/Giratina/Silvally).
|
|
if (item.forcedForme && template.species === this.getTemplate(item.forcedForme).baseSpecies && !format.noChangeForme) {
|
|
set.species = item.forcedForme;
|
|
}
|
|
}
|
|
|
|
if (template.species === 'Pikachu-Cosplay') {
|
|
let cosplay = {meteormash: 'Pikachu-Rock-Star', iciclecrash: 'Pikachu-Belle', drainingkiss: 'Pikachu-Pop-Star', electricterrain: 'Pikachu-PhD', flyingpress: 'Pikachu-Libre'};
|
|
for (let i = 0; i < set.moves.length; i++) {
|
|
if (set.moves[i] in cosplay) {
|
|
set.species = cosplay[set.moves[i]];
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (set.species !== template.species) {
|
|
// Autofixed forme.
|
|
template = this.getTemplate(set.species);
|
|
|
|
if (!this.getRuleTable(format).has('ignoreillegalabilities') && !format.noChangeAbility) {
|
|
// Ensure that the ability is (still) legal.
|
|
let legalAbility = false;
|
|
for (let i in template.abilities) {
|
|
if (template.abilities[i] !== set.ability) continue;
|
|
legalAbility = true;
|
|
break;
|
|
}
|
|
if (!legalAbility) { // Default to first ability.
|
|
set.ability = template.abilities['0'];
|
|
}
|
|
}
|
|
}
|
|
|
|
return problems;
|
|
},
|
|
},
|
|
hoennpokedex: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Hoenn Pokedex',
|
|
desc: ["Only allows Pokémon native to the Hoenn region (OR/AS)"],
|
|
onValidateSet: function (set, format) {
|
|
let hoennDex = [
|
|
"Abra", "Absol", "Aggron", "Alakazam", "Altaria", "Anorith", "Armaldo", "Aron", "Azumarill", "Azurill", "Bagon", "Baltoy", "Banette", "Barboach", "Beautifly", "Beldum", "Bellossom", "Blaziken", "Breloom", "Budew", "Cacnea", "Cacturne", "Camerupt", "Carvanha", "Cascoon", "Castform", "Chimecho", "Chinchou", "Chingling", "Clamperl", "Claydol", "Combusken", "Corphish", "Corsola", "Cradily", "Crawdaunt", "Crobat", "Delcatty", "Dodrio", "Doduo", "Donphan", "Dusclops", "Dusknoir", "Duskull", "Dustox", "Electrike", "Electrode", "Exploud", "Feebas", "Flygon", "Froslass", "Gallade", "Gardevoir", "Geodude", "Girafarig", "Glalie", "Gloom", "Golbat", "Goldeen", "Golduck", "Golem", "Gorebyss", "Graveler", "Grimer", "Grovyle", "Grumpig", "Gulpin", "Gyarados", "Hariyama", "Heracross", "Horsea", "Huntail", "Igglybuff", "Illumise", "Jigglypuff", "Kadabra", "Kecleon", "Kingdra", "Kirlia", "Koffing", "Lairon", "Lanturn", "Latias", "Latios", "Lileep", "Linoone", "Lombre", "Lotad", "Loudred", "Ludicolo", "Lunatone", "Luvdisc", "Machamp", "Machoke", "Machop", "Magcargo", "Magikarp", "Magnemite", "Magneton", "Magnezone", "Makuhita", "Manectric", "Marill", "Marshtomp", "Masquerain", "Mawile", "Medicham", "Meditite", "Metagross", "Metang", "Mightyena", "Milotic", "Minun", "Mudkip", "Muk", "Natu", "Nincada", "Ninetales", "Ninjask", "Nosepass", "Numel", "Nuzleaf", "Oddish", "Pelipper", "Phanpy", "Pichu", "Pikachu", "Pinsir", "Plusle", "Poochyena", "Probopass", "Psyduck", "Raichu", "Ralts", "Regice", "Regirock", "Registeel", "Relicanth", "Rhydon", "Rhyhorn", "Rhyperior", "Roselia", "Roserade", "Sableye", "Salamence", "Sandshrew", "Sandslash", "Sceptile", "Seadra", "Seaking", "Sealeo", "Seedot", "Seviper", "Sharpedo", "Shedinja", "Shelgon", "Shiftry", "Shroomish", "Shuppet", "Silcoon", "Skarmory", "Skitty", "Slaking", "Slakoth", "Slugma", "Snorunt", "Solrock", "Spheal", "Spinda", "Spoink", "Starmie", "Staryu", "Surskit", "Swablu", "Swalot", "Swampert", "Swellow", "Taillow", "Tentacool", "Tentacruel", "Torchic", "Torkoal", "Trapinch", "Treecko", "Tropius", "Vibrava", "Vigoroth", "Vileplume", "Volbeat", "Voltorb", "Vulpix", "Wailmer", "Wailord", "Walrein", "Weezing", "Whiscash", "Whismur", "Wigglytuff", "Wingull", "Wobbuffet", "Wurmple", "Wynaut", "Xatu", "Zangoose", "Zigzagoon", "Zubat",
|
|
];
|
|
let template = this.getTemplate(set.species || set.name);
|
|
if (!hoennDex.includes(template.baseSpecies) && !this.getRuleTable(format).has('+' + template.speciesid)) {
|
|
return [template.baseSpecies + " is not in the Hoenn Pokédex."];
|
|
}
|
|
},
|
|
},
|
|
alolapokedex: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Alola Pokedex',
|
|
desc: ["Only allows Pokémon native to the Alola region (US/UM)"],
|
|
onValidateSet: function (set, format) {
|
|
let alolaDex = [
|
|
"Rowlet", "Dartrix", "Decidueye", "Litten", "Torracat", "Incineroar", "Popplio", "Brionne", "Primarina", "Pikipek", "Trumbeak", "Toucannon", "Yungoos", "Gumshoos", "Rattata-Alola", "Raticate-Alola", "Caterpie", "Metapod", "Butterfree", "Ledyba", "Ledian", "Spinarak", "Ariados", "Buneary", "Lopunny", "Inkay", "Malamar", "Zorua", "Zoroark", "Furfrou", "Pichu", "Pikachu", "Raichu-Alola", "Grubbin", "Charjabug", "Vikavolt", "Bonsly", "Sudowoodo", "Happiny", "Chansey", "Blissey", "Munchlax", "Snorlax", "Slowpoke", "Slowbro", "Slowking", "Wingull", "Pelipper", "Abra", "Kadabra", "Alakazam", "Meowth-Alola", "Persian-Alola", "Magnemite", "Magneton", "Magnezone", "Grimer-Alola", "Muk-Alola", "Mime Jr.", "Mr. Mime", "Ekans", "Arbok", "Dunsparce", "Growlithe", "Arcanine", "Drowzee", "Hypno", "Makuhita", "Hariyama", "Smeargle", "Crabrawler", "Crabominable", "Gastly", "Haunter", "Gengar", "Drifloon", "Drifblim", "Murkrow", "Honchkrow", "Zubat", "Golbat", "Crobat", "Noibat", "Noivern", "Diglett-Alola", "Dugtrio-Alola", "Spearow", "Fearow", "Rufflet", "Braviary", "Vullaby", "Mandibuzz", "Mankey", "Primeape", "Delibird", "Hawlucha", "Oricorio", "Cutiefly", "Ribombee", "Flabe\u0301be\u0301", "Floette", "Florges", "Petilil", "Lilligant", "Cottonee", "Whimsicott", "Psyduck", "Golduck", "Smoochum", "Jynx", "Magikarp", "Gyarados", "Barboach", "Whiscash", "Seal", "Dewgong", "Machop", "Machoke", "Machamp", "Roggenrola", "Boldore", "Gigalith", "Carbink", "Sableye", "Mawile", "Rockruff", "Lycanroc", "Spinda", "Tentacool", "Tentacruel", "Finneon", "Lumineon", "Wishiwashi", "Luvdisc", "Corsola", "Mareanie", "Toxapex", "Shellder", "Cloyster", "Clamperl", "Huntail", "Gorebyss", "Remoraid", "Octillery", "Mantyke", "Mantine", "Bagon", "Shelgon", "Salamence", "Lillipup", "Herdier", "Stoutland", "Eevee", "Vaporeon", "Jolteon", "Flareon", "Espeon", "Umbreon", "Leafeon", "Glaceon", "Sylveon", "Mareep", "Flaaffy", "Ampharos", "Mudbray", "Mudsdale", "Igglybuff", "Jigglypuff", "Wigglytuff", "Tauros", "Miltank", "Surskit", "Masquerain", "Dewpider", "Araquanid", "Fomantis", "Lurantis", "Morelull", "Shiinotic", "Paras", "Parasect", "Poliwag", "Poliwhirl", "Poliwrath", "Politoed", "Goldeen", "Seaking", "Basculin", "Feebas", "Milotic", "Alomomola", "Fletchling", "Fletchinder", "Talonflame", "Salandit", "Salazzle", "Cubone", "Marowak-Alola", "Kangaskhan", "Magby", "Magmar", "Magmortar", "Larvesta", "Volcarona", "Stufful", "Bewear", "Bounsweet", "Steenee", "Tsareena", "Comfey", "Pinsir", "Hoothoot", "Noctowl", "Kecleon", "Oranguru", "Passimian", "Goomy", "Sliggoo", "Goodra", "Castform", "Wimpod", "Golisopod", "Staryu", "Starmie", "Sandygast", "Palossand", "Omanyte", "Omastar", "Kabuto", "Kabutops", "Lileep", "Cradily", "Anorith", "Armaldo", "Cranidos", "Rampardos", "Shieldon", "Bastiodon", "Tirtouga", "Carracosta", "Archen", "Archeops", "Tyrunt", "Tyrantrum", "Amaura", "Aurorus", "Pupitar", "Larvitar", "Tyranitar", "Phantump", "Trevenant", "Natu", "Xatu", "Nosepass", "Probopass", "Pyukumuku", "Chinchou", "Lanturn", "Type: Null", "Silvally", "Poipole", "Naganadel", "Zygarde", "Trubbish", "Garbodor", "Minccino", "Cinccino", "Pineco", "Forretress", "Skarmory", "Ditto", "Cleffa", "Clefairy", "Clefable", "Elgyem", "Beheeyem", "Minior", "Beldum", "Metang", "Metagross", "Porygon", "Porygon2", "Porygon-Z", "Pancham", "Pangoro", "Komala", "Torkoal", "Turtonator", "Houndour", "Houndoom", "Dedenne", "Togedemaru", "Electrike", "Manectric", "Elekid", "Electabuzz", "Electivire", "Geodude-Alola", "Graveler-Alola", "Golem-Alola", "Sandile", "Krokorok", "Krookodile", "Trapinch", "Vibrava", "Flygon", "Gible", "Gabite", "Garchomp", "Baltoy", "Claydol", "Golett", "Golurk", "Klefki", "Mimikyu", "Shuppet", "Banette", "Frillish", "Jellicent", "Bruxish", "Drampa", "Absol", "Snorunt", "Glalie", "Froslass", "Sneasel", "Weavile", "Sandshrew-Alola", "Sandslash-Alola", "Vulpix-Alola", "Ninetales-Alola", "Vanillite", "Vanillish", "Vanilluxe", "Scraggy", "Scrafty", "Pawniard", "Bisharp", "Snubbull", "Granbull", "Shellos", "Gastrodon", "Relicanth", "Dhelmise", "Carvanha", "Sharpedo", "Skrelp", "Dragalge", "Clauncher", "Clawitzer", "Wailmer", "Wailord", "Lapras", "Tropius", "Exeggcute", "Exeggutor-Alola", "Corphish", "Crawdaunt", "Mienfoo", "Mienshao", "Jangmo-o", "Hakamo-o", "Kommo-o", "Emolga", "Scyther", "Scizor", "Heracross", "Aipom", "Ampibom", "Litleo", "Pyroar", "Misdreavus", "Mismagius", "Druddigon", "Lickitung", "Lickilicky", "Riolu", "Lucario", "Dratini", "Dragonair", "Dragonite", "Aerodactyl", "Tapu Koko", "Tapu Lele", "Tapu Bulu", "Tapu Fini", "Cosmog", "Cosmoem", "Solgaleo", "Lunala", "Nihilego", "Stakataka", "Blacephalon", "Buzzwole", "Pheromosa", "Xurkitree", "Celesteela", "Kartana", "Guzzlord", "Necrozma", "Magearna", "Marshadow", "Zeraora",
|
|
];
|
|
let template = this.getTemplate(set.species || set.name);
|
|
if (!alolaDex.includes(template.baseSpecies) && !alolaDex.includes(template.species) && !this.getRuleTable(format).has('+' + template.speciesid)) {
|
|
return [`${template.baseSpecies} is not in the Alola Pokédex.`];
|
|
}
|
|
},
|
|
},
|
|
potd: {
|
|
effectType: 'Rule',
|
|
name: 'PotD',
|
|
onStart: function () {
|
|
if (Config.potd) {
|
|
this.add('rule', "Pokemon of the Day: " + this.getTemplate(Config.potd).name);
|
|
}
|
|
},
|
|
},
|
|
teampreview: {
|
|
effectType: 'Rule',
|
|
name: 'Team Preview',
|
|
desc: ["Allows each player to see the Pokémon on their opponent's team before they choose their lead Pokémon"],
|
|
onStartPriority: -10,
|
|
onStart: function () {
|
|
this.add('clearpoke');
|
|
for (let i = 0; i < this.sides[0].pokemon.length; i++) {
|
|
let pokemon = this.sides[0].pokemon[i];
|
|
let details = pokemon.details.replace(/(Arceus|Gourgeist|Genesect|Pumpkaboo|Silvally)(-[a-zA-Z?]+)?/g, '$1-*').replace(', shiny', '');
|
|
this.add('poke', pokemon.side.id, details, pokemon.item ? 'item' : '');
|
|
}
|
|
for (let i = 0; i < this.sides[1].pokemon.length; i++) {
|
|
let pokemon = this.sides[1].pokemon[i];
|
|
let details = pokemon.details.replace(/(Arceus|Gourgeist|Genesect|Pumpkaboo|Silvally)(-[a-zA-Z?]+)?/g, '$1-*').replace(', shiny', '');
|
|
this.add('poke', pokemon.side.id, details, pokemon.item ? 'item' : '');
|
|
}
|
|
},
|
|
onTeamPreview: function () {
|
|
this.makeRequest('teampreview');
|
|
},
|
|
},
|
|
littlecup: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Little Cup',
|
|
desc: ["Only allows Pokémon that can evolve and don't have any prior evolutions"],
|
|
onValidateSet: function (set) {
|
|
let template = this.getTemplate(set.species || set.name);
|
|
if (template.prevo) {
|
|
return [set.species + " isn't the first in its evolution family."];
|
|
}
|
|
if (!template.nfe) {
|
|
return [set.species + " doesn't have an evolution family."];
|
|
}
|
|
},
|
|
},
|
|
speciesclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Species Clause',
|
|
desc: ["Prevents teams from having more than one Pokémon from the same species"],
|
|
onStart: function () {
|
|
this.add('rule', 'Species Clause: Limit one of each Pokémon');
|
|
},
|
|
onValidateTeam: function (team, format) {
|
|
let speciesTable = {};
|
|
for (let i = 0; i < team.length; i++) {
|
|
let template = this.getTemplate(team[i].species);
|
|
if (speciesTable[template.num]) {
|
|
return ["You are limited to one of each Pokémon by Species Clause.", "(You have more than one " + template.baseSpecies + ")"];
|
|
}
|
|
speciesTable[template.num] = true;
|
|
}
|
|
},
|
|
},
|
|
nicknameclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Nickname Clause',
|
|
desc: ["Prevents teams from having more than one Pokémon with the same nickname"],
|
|
onValidateTeam: function (team, format) {
|
|
let nameTable = {};
|
|
for (let i = 0; i < team.length; i++) {
|
|
let name = team[i].name;
|
|
if (name) {
|
|
if (name === team[i].species) continue;
|
|
if (nameTable[name]) {
|
|
return ["Your Pokémon must have different nicknames.", "(You have more than one " + name + ")"];
|
|
}
|
|
nameTable[name] = true;
|
|
}
|
|
}
|
|
// Illegality of impersonation of other species is
|
|
// hardcoded in team-validator.js, so we are done.
|
|
},
|
|
},
|
|
itemclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Item Clause',
|
|
desc: ["Prevents teams from having more than one Pokémon with the same item"],
|
|
onStart: function () {
|
|
this.add('rule', 'Item Clause: Limit one of each item');
|
|
},
|
|
onValidateTeam: function (team, format) {
|
|
let itemTable = {};
|
|
for (let i = 0; i < team.length; i++) {
|
|
let item = toId(team[i].item);
|
|
if (!item) continue;
|
|
if (itemTable[item]) {
|
|
return ["You are limited to one of each item by Item Clause.", "(You have more than one " + this.getItem(item).name + ")"];
|
|
}
|
|
itemTable[item] = true;
|
|
}
|
|
},
|
|
},
|
|
abilityclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Ability Clause',
|
|
desc: ["Prevents teams from having more than two Pokémon with the same ability"],
|
|
onStart: function () {
|
|
this.add('rule', 'Ability Clause: Limit two of each ability');
|
|
},
|
|
onValidateTeam: function (team, format) {
|
|
let abilityTable = {};
|
|
let base = {
|
|
airlock: 'cloudnine',
|
|
battlearmor: 'shellarmor',
|
|
clearbody: 'whitesmoke',
|
|
dazzling: 'queenlymajesty',
|
|
emergencyexit: 'wimpout',
|
|
filter: 'solidrock',
|
|
gooey: 'tanglinghair',
|
|
insomnia: 'vitalspirit',
|
|
ironbarbs: 'roughskin',
|
|
minus: 'plus',
|
|
powerofalchemy: 'receiver',
|
|
teravolt: 'moldbreaker',
|
|
turboblaze: 'moldbreaker',
|
|
};
|
|
for (let i = 0; i < team.length; i++) {
|
|
let ability = toId(team[i].ability);
|
|
if (!ability) continue;
|
|
if (ability in base) ability = base[ability];
|
|
if (ability in abilityTable) {
|
|
if (abilityTable[ability] >= 2) {
|
|
return ["You are limited to two of each ability by the Ability Clause.", `(You have more than two ${this.getAbility(ability).name} variants)`];
|
|
}
|
|
abilityTable[ability]++;
|
|
} else {
|
|
abilityTable[ability] = 1;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ohkoclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'OHKO Clause',
|
|
desc: ["Bans all OHKO moves, such as Fissure"],
|
|
onStart: function () {
|
|
this.add('rule', 'OHKO Clause: OHKO moves are banned');
|
|
},
|
|
onValidateSet: function (set) {
|
|
let problems = [];
|
|
if (set.moves) {
|
|
for (let i = 0; i < set.moves.length; i++) {
|
|
let move = this.getMove(set.moves[i]);
|
|
if (move.ohko) problems.push(move.name + ' is banned by OHKO Clause.');
|
|
}
|
|
}
|
|
return problems;
|
|
},
|
|
},
|
|
evasionabilitiesclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Evasion Abilities Clause',
|
|
desc: ["Bans abilities that boost Evasion under certain weather conditions"],
|
|
banlist: ['Sand Veil', 'Snow Cloak'],
|
|
onStart: function () {
|
|
this.add('rule', 'Evasion Abilities Clause: Evasion abilities are banned');
|
|
},
|
|
},
|
|
evasionmovesclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Evasion Moves Clause',
|
|
desc: ["Bans moves that consistently raise the user's evasion when used, or when powered up by a Z Crystal"],
|
|
banlist: ['Minimize', 'Double Team'],
|
|
onStart: function () {
|
|
this.add('rule', 'Evasion Moves Clause: Evasion moves are banned');
|
|
},
|
|
onValidateSet: function (set, format, setHas) {
|
|
let item = this.getItem(set.item);
|
|
if (!item.zMove) return;
|
|
let evasionBoosted = false;
|
|
for (let i = 0; i < set.moves.length; i++) {
|
|
let move = this.getMove(set.moves[i]);
|
|
if (move.type === item.zMoveType) {
|
|
if (move.zMoveBoost && move.zMoveBoost.evasion > 0) {
|
|
evasionBoosted = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (!evasionBoosted) return;
|
|
return [(set.name || set.species) + " can boost Evasion, which is banned by Evasion Clause."];
|
|
},
|
|
},
|
|
endlessbattleclause: {
|
|
effectType: 'Rule',
|
|
name: 'Endless Battle Clause',
|
|
desc: ["Prevents players from forcing a battle which their opponent cannot end except by forfeit"],
|
|
// implemented in sim/battle.js
|
|
|
|
// A Pokémon has a confinement counter, which starts at 0:
|
|
// +1 confinement whenever:
|
|
// - it has no available moves other than Struggle
|
|
// - it was forced to switch by a stale opponent before it could do its
|
|
// action for the turn
|
|
// - it intentionally switched out the turn after it switched in against
|
|
// a stale Pokémon
|
|
// - it shifts in Triples against a stale Pokémon
|
|
// - it has gone 5 turns without losing PP (mimiced/transformed moves
|
|
// count only if no foe is stale)
|
|
// confinement reset to 0 whenever:
|
|
// - it uses PP while not Transformed/Impostered
|
|
// - if it has at least 2 confinement, and begins a turn without losing
|
|
// at least 1% of its max HP from the last time its confinement counter
|
|
// was 0 - user also becomes half-stale if not already half-stale, or
|
|
// stale if already half-stale
|
|
|
|
// A Pokémon is also considered stale if:
|
|
// - it has gained a Leppa berry through any means besides starting
|
|
// with one
|
|
// - OR it has eaten a Leppa berry it isn't holding
|
|
|
|
onStart: function () {
|
|
this.add('rule', 'Endless Battle Clause: Forcing endless battles is banned');
|
|
},
|
|
},
|
|
moodyclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Moody Clause',
|
|
desc: ["Bans the ability Moody"],
|
|
banlist: ['Moody'],
|
|
onStart: function () {
|
|
this.add('rule', 'Moody Clause: Moody is banned');
|
|
},
|
|
},
|
|
swaggerclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Swagger Clause',
|
|
desc: ["Bans the move Swagger"],
|
|
banlist: ['Swagger'],
|
|
onStart: function () {
|
|
this.add('rule', 'Swagger Clause: Swagger is banned');
|
|
},
|
|
},
|
|
batonpassclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Baton Pass Clause',
|
|
desc: ["Stops teams from having more than one Pokémon with Baton Pass, and no Pokémon may be capable of passing boosts to both Speed and another stat"],
|
|
banlist: ["Baton Pass > 1"],
|
|
onStart: function () {
|
|
this.add('rule', 'Baton Pass Clause: Limit one Baton Passer, can\'t pass Spe and other stats simultaneously');
|
|
},
|
|
onValidateSet: function (set, format, setHas) {
|
|
if (!('batonpass' in setHas)) return;
|
|
|
|
// check if Speed is boosted
|
|
let speedBoosted = false;
|
|
let nonSpeedBoosted = false;
|
|
if (toId(set.item) === 'eeviumz') {
|
|
speedBoosted = true;
|
|
nonSpeedBoosted = true;
|
|
}
|
|
let item = this.getItem(set.item);
|
|
for (let i = 0; i < set.moves.length; i++) {
|
|
let move = this.getMove(set.moves[i]);
|
|
if (move.boosts && move.boosts.spe > 0) {
|
|
speedBoosted = true;
|
|
}
|
|
if (move.boosts && (move.boosts.atk > 0 || move.boosts.def > 0 || move.boosts.spa > 0 || move.boosts.spd > 0)) {
|
|
nonSpeedBoosted = true;
|
|
}
|
|
if (item.zMove && move.type === item.zMoveType) {
|
|
if (move.zMoveBoost && move.zMoveBoost.spe > 0) {
|
|
if (!speedBoosted) speedBoosted = move.name;
|
|
}
|
|
if (move.zMoveBoost && (move.zMoveBoost.atk > 0 || move.zMoveBoost.def > 0 || move.zMoveBoost.spa > 0 || move.zMoveBoost.spd > 0)) {
|
|
if (!nonSpeedBoosted || move.name === speedBoosted) nonSpeedBoosted = move.name;
|
|
}
|
|
}
|
|
}
|
|
|
|
let boostSpeed = ['flamecharge', 'geomancy', 'motordrive', 'rattled', 'speedboost', 'steadfast', 'weakarmor', 'blazikenite', 'salacberry'];
|
|
if (!speedBoosted) {
|
|
for (let i = 0; i < boostSpeed.length; i++) {
|
|
if (boostSpeed[i] in setHas) {
|
|
speedBoosted = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (!speedBoosted) {
|
|
return;
|
|
}
|
|
|
|
// check if non-Speed boosted
|
|
let boostNonSpeed = ['acupressure', 'starfberry', 'curse', 'poweruppunch', 'rage', 'rototiller', 'fellstinger', 'bellydrum', 'download', 'justified', 'moxie', 'sapsipper', 'defiant', 'angerpoint', 'cellbattery', 'liechiberry', 'snowball', 'weaknesspolicy', 'diamondstorm', 'flowershield', 'skullbash', 'stockpile', 'cottonguard', 'ganlonberry', 'keeberry', 'chargebeam', 'fierydance', 'geomancy', 'lightningrod', 'stormdrain', 'competitive', 'absorbbulb', 'petayaberry', 'charge', 'apicotberry', 'luminousmoss', 'marangaberry'];
|
|
if (!nonSpeedBoosted) {
|
|
for (let i = 0; i < boostNonSpeed.length; i++) {
|
|
if (boostNonSpeed[i] in setHas) {
|
|
nonSpeedBoosted = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (!nonSpeedBoosted) return;
|
|
|
|
// if both boost sources are Z-moves, and they're distinct
|
|
if (speedBoosted !== nonSpeedBoosted && typeof speedBoosted === 'string' && typeof nonSpeedBoosted === 'string') return;
|
|
|
|
return [(set.name || set.species) + " can Baton Pass both Speed and a different stat, which is banned by Baton Pass Clause."];
|
|
},
|
|
},
|
|
cfzclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'CFZ Clause',
|
|
desc: ["Bans the use of crystal-free Z-Moves"],
|
|
banlist: ['10,000,000 Volt Thunderbolt', 'Acid Downpour', 'All-Out Pummeling', 'Black Hole Eclipse', 'Bloom Doom', 'Breakneck Blitz', 'Catastropika', 'Clangorous Soulblaze', 'Continental Crush', 'Corkscrew Crash', 'Devastating Drake', 'Extreme Evoboost', 'Genesis Supernova', 'Gigavolt Havoc', 'Guardian of Alola', 'Hydro Vortex', 'Inferno Overdrive', 'Let\'s Snuggle Forever', 'Light That Burns the Sky', 'Malicious Moonsault', 'Menacing Moonraze Maelstrom', 'Never-Ending Nightmare', 'Oceanic Operetta', 'Pulverizing Pancake', 'Savage Spin-Out', 'Searing Sunraze Smash', 'Shattered Psyche', 'Sinister Arrow Raid', 'Soul-Stealing 7-Star Strike', 'Splintered Stormshards', 'Stoked Sparksurfer', 'Subzero Slammer', 'Supersonic Skystrike', 'Tectonic Rage', 'Twinkle Tackle'],
|
|
onStart: function () {
|
|
this.add('rule', 'CFZ Clause: Crystal-free Z-Moves are banned');
|
|
},
|
|
},
|
|
hppercentagemod: {
|
|
effectType: 'Rule',
|
|
name: 'HP Percentage Mod',
|
|
desc: ["Shows the HP of Pokémon in percentages"],
|
|
onStart: function () {
|
|
this.add('rule', 'HP Percentage Mod: HP is shown in percentages');
|
|
this.reportPercentages = true;
|
|
},
|
|
},
|
|
exacthpmod: {
|
|
effectType: 'Rule',
|
|
name: 'Exact HP Mod',
|
|
desc: ["Shows the exact HP of all Pokémon"],
|
|
onStart: function () {
|
|
this.add('rule', 'Exact HP Mod: Exact HP is shown');
|
|
this.reportExactHP = true;
|
|
},
|
|
},
|
|
cancelmod: {
|
|
effectType: 'Rule',
|
|
name: 'Cancel Mod',
|
|
desc: ["Allows players to change their own choices before their opponents make one"],
|
|
onStart: function () {
|
|
this.supportCancel = true;
|
|
},
|
|
},
|
|
sleepclausemod: {
|
|
effectType: 'Rule',
|
|
name: 'Sleep Clause Mod',
|
|
desc: ["Prevents players from putting more than one of their opponent's Pokémon to sleep at a time, and bans Mega Gengar from using Hypnosis"],
|
|
banlist: ['Hypnosis + Gengarite'],
|
|
onStart: function () {
|
|
this.add('rule', 'Sleep Clause Mod: Limit one foe put to sleep');
|
|
},
|
|
onSetStatus: function (status, target, source) {
|
|
if (source && source.side === target.side) {
|
|
return;
|
|
}
|
|
if (status.id === 'slp') {
|
|
for (let i = 0; i < target.side.pokemon.length; i++) {
|
|
let pokemon = target.side.pokemon[i];
|
|
if (pokemon.hp && pokemon.status === 'slp') {
|
|
if (!pokemon.statusData.source || pokemon.statusData.source.side !== pokemon.side) {
|
|
this.add('-message', 'Sleep Clause Mod activated.');
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
freezeclausemod: {
|
|
effectType: 'Rule',
|
|
name: 'Freeze Clause Mod',
|
|
desc: ["Prevents players from freezing more than one of their opponent's Pokémon at a time"],
|
|
onStart: function () {
|
|
this.add('rule', 'Freeze Clause Mod: Limit one foe frozen');
|
|
},
|
|
onSetStatus: function (status, target, source) {
|
|
if (source && source.side === target.side) {
|
|
return;
|
|
}
|
|
if (status.id === 'frz') {
|
|
for (let i = 0; i < target.side.pokemon.length; i++) {
|
|
let pokemon = target.side.pokemon[i];
|
|
if (pokemon.status === 'frz') {
|
|
this.add('-message', 'Freeze Clause activated.');
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
sametypeclause: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Same Type Clause',
|
|
desc: ["Forces all Pokémon on a team to share a type with each other"],
|
|
onStart: function () {
|
|
this.add('rule', 'Same Type Clause: Pokémon in a team must share a type');
|
|
},
|
|
onValidateTeam: function (team) {
|
|
let typeTable;
|
|
for (let i = 0; i < team.length; i++) {
|
|
let template = this.getTemplate(team[i].species);
|
|
if (!template.types) return [`Invalid pokemon ${team[i].name || team[i].species}`];
|
|
if (i === 0) {
|
|
typeTable = template.types;
|
|
} else {
|
|
typeTable = typeTable.filter(type => template.types.indexOf(type) >= 0);
|
|
}
|
|
if (this.gen >= 7) {
|
|
let item = this.getItem(team[i].item);
|
|
if (item.megaStone && template.species === item.megaEvolves) {
|
|
template = this.getTemplate(item.megaStone);
|
|
typeTable = typeTable.filter(type => template.types.includes(type));
|
|
}
|
|
if (item.id === "ultranecroziumz" && template.baseSpecies === "Necrozma") {
|
|
template = this.getTemplate("Necrozma-Ultra");
|
|
typeTable = typeTable.filter(type => template.types.includes(type));
|
|
}
|
|
}
|
|
if (!typeTable.length) return [`Your team must share a type.`];
|
|
}
|
|
},
|
|
},
|
|
megarayquazaclause: {
|
|
effectType: 'Rule',
|
|
name: 'Mega Rayquaza Clause',
|
|
desc: ["Prevents Rayquaza from mega evolving"],
|
|
onStart: function () {
|
|
this.add('rule', 'Mega Rayquaza Clause: You cannot mega evolve Rayquaza');
|
|
for (let i = 0; i < this.sides[0].pokemon.length; i++) {
|
|
if (this.sides[0].pokemon[i].speciesid === 'rayquaza') this.sides[0].pokemon[i].canMegaEvo = false;
|
|
}
|
|
for (let i = 0; i < this.sides[1].pokemon.length; i++) {
|
|
if (this.sides[1].pokemon[i].speciesid === 'rayquaza') this.sides[1].pokemon[i].canMegaEvo = false;
|
|
}
|
|
},
|
|
},
|
|
inversemod: {
|
|
effectType: 'Rule',
|
|
name: 'Inverse Mod',
|
|
desc: ["The mod for Inverse Battle which inverts the type effectiveness chart, swapping resistances and weaknesses with each other"],
|
|
onNegateImmunity: false,
|
|
onEffectiveness: function (typeMod, target, type, move) {
|
|
// The effectiveness of Freeze Dry on Water isn't reverted
|
|
if (move && move.id === 'freezedry' && type === 'Water') return;
|
|
if (move && !this.getImmunity(move, type)) return 1;
|
|
return -typeMod;
|
|
},
|
|
},
|
|
ignoreillegalabilities: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Ignore Illegal Abilities',
|
|
desc: ["Allows Pokémon to use any ability"],
|
|
// Implemented in the 'pokemon' ruleset and in team-validator.js
|
|
},
|
|
ignorestabmoves: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Ignore STAB Moves',
|
|
desc: ["Allows Pokémon to use any move that they or a previous evolution/out-of-battle forme share a type with"],
|
|
// Implemented in team-validator.js
|
|
},
|
|
allowonesketch: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Allow One Sketch',
|
|
desc: ["Allows each Pokémon to use one move they don't normally have access to via Sketch"],
|
|
// Implemented in team-validator.js
|
|
},
|
|
allowcap: {
|
|
effectType: 'ValidatorRule',
|
|
name: 'Allow CAP',
|
|
desc: ["Allows the use of Pokémon, abilities, moves, and items made by the Create-A-Pokémon project"],
|
|
// Implemented in the 'pokemon' ruleset
|
|
},
|
|
};
|