From 46d22287d00d31b05efaeec5462a4f680312b098 Mon Sep 17 00:00:00 2001 From: Karthik <32044378+Karthik99999@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:00:29 -0500 Subject: [PATCH] Fix Zacian/Zamazenta Crowned formes in Hackmons (#10075) --- data/rulesets.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/rulesets.ts b/data/rulesets.ts index 43241baf9b351..ba2cbd060ade8 100644 --- a/data/rulesets.ts +++ b/data/rulesets.ts @@ -587,12 +587,11 @@ export const Rulesets: {[k: string]: FormatData} = { onTeamPreview() { this.add('clearpoke'); for (const pokemon of this.getAllPokemon()) { - let details = pokemon.details.replace(', shiny', ''); + let details = pokemon.details.replace(', shiny', '') + .replace(/(Zacian|Zamazenta)(?!-Crowned)/g, '$1-*'); // Hacked-in Crowned formes will be revealed if (!this.ruleTable.has('speciesrevealclause')) { details = details - .replace(/(Greninja|Gourgeist|Pumpkaboo|Xerneas|Silvally|Urshifu|Dudunsparce)(-[a-zA-Z?-]+)?/g, '$1-*') - // Still here for National Dex BH - .replace(/(Zacian|Zamazenta)(?!-Crowned)/g, '$1-*'); // Hacked-in Crowned formes will be revealed + .replace(/(Greninja|Gourgeist|Pumpkaboo|Xerneas|Silvally|Urshifu|Dudunsparce)(-[a-zA-Z?-]+)?/g, '$1-*'); } this.add('poke', pokemon.side.id, details, ''); }