[Bug] Fixed a bug where genderless and non shiny pokemon could show the new gender or shiny indicator (#2090)
This commit is contained in:
parent
00aaeb5947
commit
576bcf7bdb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue