From 576bcf7bdba0efb1f589e735d48210b4817ec63a Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Wed, 12 Jun 2024 01:34:11 +1000 Subject: [PATCH] [Bug] Fixed a bug where genderless and non shiny pokemon could show the new gender or shiny indicator (#2090) --- src/ui/pokemon-info-container.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/pokemon-info-container.ts b/src/ui/pokemon-info-container.ts index 40607b9d95c..f28cf2e8a48 100644 --- a/src/ui/pokemon-info-container.ts +++ b/src/ui/pokemon-info-container.ts @@ -222,6 +222,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container { this.pokemonGenderNewText.setShadowColor(getTextColor(TextStyle.SUMMARY_BLUE, true, this.scene.uiTheme)); this.pokemonGenderNewText.setVisible((newGender & caughtAttr) === BigInt(0)); } else { + this.pokemonGenderNewText.setVisible(false); this.pokemonGenderText.setVisible(false); } @@ -312,6 +313,8 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container { this.pokemonShinyNewIcon.setShadowColor(getTextColor(TextStyle.SUMMARY_BLUE, true, this.scene.uiTheme)); const newShinyOrVariant = ((newShiny & caughtAttr) === BigInt(0)) || ((newVariant & caughtAttr) === BigInt(0)); this.pokemonShinyNewIcon.setVisible(!!newShinyOrVariant); + } else { + this.pokemonShinyNewIcon.setVisible(false); } this.pokemonFusionShinyIcon.setPosition(this.pokemonShinyIcon.x, this.pokemonShinyIcon.y);