pokemon-showdown/data/mods/gen8dlc1/format-rules.ts
Guangcong Luo e9ec82327f Rename files in data for consistency
- rulesets.ts -> format-rules.ts
- formats-data.ts -> pokedex-tiers.ts

Variable names were updated to match.
2024-07-02 03:06:33 -07:00

15 lines
522 B
TypeScript

export const Rulesets: import('../../../sim/dex-formats').ModdedFormatDataTable = {
teampreview: {
inherit: true,
onBattleStart() {
// Xerneas isn't in DLC1 but operated this way pre-1.3.2 update
const formesToLeak = ['zaciancrowned', 'zamazentacrowned', 'xerneas'];
for (const pokemon of this.getAllPokemon()) {
if (!formesToLeak.includes(pokemon.baseSpecies.id)) continue;
const newDetails = pokemon.details.replace(', shiny', '');
this.add('updatepoke', pokemon, newDetails);
}
},
},
};