Skip to content

Commit

Permalink
Fix Zacian/Zamazenta Crowned formes in Hackmons (smogon#10075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 authored and MathyFurret committed May 21, 2024
1 parent b13c136 commit 46d2228
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions data/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
}
Expand Down

0 comments on commit 46d2228

Please sign in to comment.