Validate full shiny party achievement on initial encounter

This commit is contained in:
Flashfyre 2024-04-06 23:14:13 -04:00
parent 70a4d54ec9
commit cc98d9da7d
1 changed files with 3 additions and 0 deletions

View File

@ -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 {