Validate full shiny party achievement on initial encounter

This commit is contained in:
Flashfyre committed 2024-04-06 23:14:13 -04:00
1 parent 70a4d54ec9
commit cc98d9da7d
1 file changed
+3
+3
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 {