Skip to content

Commit

Permalink
Update National Dex teambuilder support (smogon#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Jul 2, 2020
1 parent ed7d053 commit 943a7ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-tools/build-indexes
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
if (isNatDex) {
let tier = species.tier;
const unobtainables = [
'Eevee-Starter', 'Floette-Eternal', 'Pichu-Spiky-eared', 'Pikachu-Belle', 'Pikachu-Cosplay', 'Pikachu-Libre', 'Pikachu-PhD', 'Pikachu-Pop-Star', 'Pikachu-Rock-Star', 'Pikachu-Starter', 'Magearna-Original', 'Eternatus-Eternamax',
'Eevee-Starter', 'Floette-Eternal', 'Pichu-Spiky-eared', 'Pikachu-Belle', 'Pikachu-Cosplay', 'Pikachu-Libre', 'Pikachu-PhD', 'Pikachu-Pop-Star', 'Pikachu-Rock-Star', 'Pikachu-Starter', 'Eternatus-Eternamax',
].map(toID);
if (species.isNonstandard && !['Past'].includes(species.isNonstandard) && species.id !== 'slowpoke') return 'Illegal';
if (species.isNonstandard && !['Past'].includes(species.isNonstandard)) return 'Illegal';
if (unobtainables.includes(species.id)) return 'Illegal';
const uuBanlist = Dex.getFormat('gen8nationaldexuu').banlist.map(toID);
const ouBanlist = Dex.getFormat('gen8nationaldex').banlist.map(toID);
Expand Down

0 comments on commit 943a7ce

Please sign in to comment.