From cc98d9da7dd0d3b5de8a3a5fa40b3c555fbcbc50 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 6 Apr 2024 23:14:13 -0400 Subject: [PATCH] Validate full shiny party achievement on initial encounter --- src/phases.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index 9a03888b0..9ea5ce9ef 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -599,6 +599,9 @@ export class EncounterPhase extends BattlePhase { console.log(enemyPokemon.name, enemyPokemon.species.speciesId, enemyPokemon.stats); }); + if (this.scene.getParty().filter(p => p.isShiny()).length === 6) + this.scene.validateAchv(achvs.SHINY_PARTY); + if (battle.battleType === BattleType.TRAINER) loadEnemyAssets.push(battle.trainer.loadAssets().then(() => battle.trainer.initSprite())); else {