From 24afc0f57e4da97b1d3e1133d355d485e8ca2edd Mon Sep 17 00:00:00 2001 From: The Immortal Date: Fri, 23 Oct 2020 20:51:16 +0400 Subject: [PATCH] Show Genesect forme in Team Preview --- data/mods/gen7/rulesets.ts | 11 +++++++++++ data/rulesets.ts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/data/mods/gen7/rulesets.ts b/data/mods/gen7/rulesets.ts index f46a5b0398..32b267ecf1 100644 --- a/data/mods/gen7/rulesets.ts +++ b/data/mods/gen7/rulesets.ts @@ -26,4 +26,15 @@ export const Formats: {[k: string]: ModdedFormatData} = { this.add('rule', 'Gravity Sleep Clause: The combination of Gravity and sleep-inducing moves with imperfect accuracy are banned'); }, }, + teampreview: { + inherit: true, + onBegin() { + this.add('clearpoke'); + for (const pokemon of this.getAllPokemon()) { + const details = pokemon.details.replace(', shiny', '') + .replace(/(Arceus|Gourgeist|Genesect|Pumpkaboo|Silvally|Urshifu)(-[a-zA-Z?-]+)?/g, '$1-*'); + this.add('poke', pokemon.side.id, details, pokemon.item ? 'item' : ''); + } + }, + }, }; diff --git a/data/rulesets.ts b/data/rulesets.ts index c33c41ca85..f3b71e0a31 100644 --- a/data/rulesets.ts +++ b/data/rulesets.ts @@ -307,8 +307,8 @@ export const Formats: {[k: string]: FormatData} = { this.add('clearpoke'); for (const pokemon of this.getAllPokemon()) { const details = pokemon.details.replace(', shiny', '') - .replace(/(Arceus|Gourgeist|Genesect|Pumpkaboo|Silvally|Urshifu)(-[a-zA-Z?-]+)?/g, '$1-*'); - this.add('poke', pokemon.side.id, details, this.gen < 8 && pokemon.item ? 'item' : ''); + .replace(/(Arceus|Gourgeist|Pumpkaboo|Silvally|Urshifu)(-[a-zA-Z?-]+)?/g, '$1-*'); + this.add('poke', pokemon.side.id, details, ''); } }, onTeamPreview() {