[Bug] [UI/UX] [Beta] Fix visibility of egg moves in ssui (#6343)

Fix visibility of egg moves when backing out of fresh start and back into ssui
This commit is contained in:
Sirz Benjie 2025-08-22 18:25:27 -05:00 committed by GitHub
parent 254d34fd08
commit 6361762fc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1171,17 +1171,17 @@ export class StarterSelectUiHandler extends MessageUiHandler {
this.setUpgradeAnimation(icon, species); this.setUpgradeAnimation(icon, species);
}); });
if (globalScene.gameMode.hasChallenge(Challenges.FRESH_START)) { const notFreshStart = !globalScene.gameMode.hasChallenge(Challenges.FRESH_START);
for (const container of this.pokemonEggMoveContainers) {
container.setVisible(false); for (const container of this.pokemonEggMoveContainers) {
} container.setVisible(notFreshStart);
this.eggMovesLabel.setVisible(false);
// This is not enough, we need individual checks in setStarterSpecies too! :)
this.pokemonPassiveDisabledIcon.setVisible(false);
this.pokemonPassiveLabelText.setVisible(false);
this.pokemonPassiveLockedIcon.setVisible(false);
this.pokemonPassiveText.setVisible(false);
} }
this.eggMovesLabel.setVisible(notFreshStart);
// This is not enough, we need individual checks in setStarterSpecies too! :)
this.pokemonPassiveDisabledIcon.setVisible(notFreshStart);
this.pokemonPassiveLabelText.setVisible(notFreshStart);
this.pokemonPassiveLockedIcon.setVisible(notFreshStart);
this.pokemonPassiveText.setVisible(notFreshStart);
this.resetFilters(); this.resetFilters();
this.updateStarters(); this.updateStarters();