Skip to content

Commit

Permalink
STABmons: Fix NatDex validation (#10123)
Browse files Browse the repository at this point in the history
  • Loading branch information
MathyFurret authored Jan 19, 2024
1 parent 2faefc6 commit fa1b5fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,8 @@ export const Rulesets: {[k: string]: FormatData} = {
const speciesTypes: string[] = [];
const moveTypes: string[] = [];
// BDSP can't import Pokemon from Home, so it shouldn't grant moves from archaic species types
const minObtainableSpeciesGen = this.dex.currentMod === 'gen8bdsp' || this.dex.gen === 9 ?
const minObtainableSpeciesGen = this.dex.currentMod === 'gen8bdsp' ||
(this.dex.gen === 9 && !this.ruleTable.has('standardnatdex')) ?
this.dex.gen : species.gen;
for (let i = this.dex.gen; i >= minObtainableSpeciesGen && i >= move.gen; i--) {
const dex = this.dex.forGen(i);
Expand Down

0 comments on commit fa1b5fd

Please sign in to comment.