From f23c95327330cbe34ca9d4cba4eec0eef247d858 Mon Sep 17 00:00:00 2001 From: shrianshChari <30420527+shrianshChari@users.noreply.github.com> Date: Tue, 13 May 2025 19:46:36 -0700 Subject: [PATCH] Fix egg move validation when Smeargle is Unreleased (#11102) --- sim/team-validator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sim/team-validator.ts b/sim/team-validator.ts index 69a333b839..24650352fb 100644 --- a/sim/team-validator.ts +++ b/sim/team-validator.ts @@ -1435,7 +1435,7 @@ export class TeamValidator { throw new Error(`${species.name} has no egg groups for source ${source}`); } // no chainbreeding necessary if the father can be Smeargle - if (!getAll && eggGroups.includes('Field')) return true; + if (!getAll && eggGroups.includes('Field') && this.dex.species.get('Smeargle').tier !== 'Unreleased') return true; // try to find a father to inherit the egg move combination from for (const father of dex.species.all()) { @@ -1486,7 +1486,8 @@ export class TeamValidator { if (!this.dex.species.getLearnsetData(species.id).learnset) return false; if (species.id === 'smeargle') return true; - const canBreedWithSmeargle = species.eggGroups.includes('Field'); + const canBreedWithSmeargle = species.eggGroups.includes('Field') && + this.dex.species.get('Smeargle').tier !== 'Unreleased'; const allEggSources = new PokemonSources(); allEggSources.sourcesBefore = eggGen;