Skip to content

Commit

Permalink
Draft Factory: Reveal Urshifu forme in Team Preview (smogon#10733)
Browse files Browse the repository at this point in the history
* Draft Factory: Reveal Urshifu forme in Team Preview

* Update config/formats.ts

* Update config/formats.ts

---------

Co-authored-by: Kris Johnson <[email protected]>
  • Loading branch information
Karthik99999 and KrisXV authored Dec 7, 2024
1 parent 1b90291 commit 31fe5dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions config/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2624,13 +2624,21 @@ export const Formats: import('../sim/dex-formats').FormatList = [
desc: `Randomized matchups sourced from various 6v6 singles draft leagues.`,
mod: 'gen9',
team: 'randomDraftFactory',
ruleset: ['Standard Draft'],
ruleset: ['Standard Draft', '!Team Preview'],
onBegin() {
for (const pokemon of this.getAllPokemon()) {
if (!(pokemon.set as any).teraCaptain) pokemon.canTerastallize = null;
}
this.add('rule', 'Tera Captain Clause: Only Tera Captains can Terastallize');
},
onTeamPreview() {
this.add('clearpoke');
for (const pokemon of this.getAllPokemon()) {
const details = pokemon.details.replace(', shiny', '')
.replace(/(Greninja|Gourgeist|Pumpkaboo|Xerneas|Zacian|Zamazenta|Dudunsparce)(-[a-zA-Z?-]+)?/g, '$1-*');
this.add('poke', pokemon.side.id, details, '');
}
this.makeRequest('teampreview');
for (const side of this.sides) {
let buf = ``;
for (const pokemon of side.pokemon) {
Expand All @@ -2640,7 +2648,6 @@ export const Formats: import('../sim/dex-formats').FormatList = [
}
this.add(`${buf}`);
}
this.add(`raw|Only Tera Captains are allowed to Terastallize!`);
},
},
{
Expand Down
Loading

0 comments on commit 31fe5dd

Please sign in to comment.