mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Show Genesect forme in Team Preview
This commit is contained in:
parent
8d7b72c606
commit
24afc0f57e
|
|
@ -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' : '');
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user