From 626f8b6e4b81f0b88e84e8b9a22ae2f2866f810e Mon Sep 17 00:00:00 2001 From: "Alexander B." <4866817+MathyFurret@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:29:47 -0600 Subject: [PATCH] STABMons: Fix NatDex validation --- data/rulesets.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/rulesets.ts b/data/rulesets.ts index 91e67ae6169d..76a6d847872a 100644 --- a/data/rulesets.ts +++ b/data/rulesets.ts @@ -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);