mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
[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:
parent
254d34fd08
commit
6361762fc9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user