Ensure shiny icon is visible in battle info when shiny

pull/16/head
Flashfyre 2024-02-29 12:59:23 -05:00
parent ed5921eb10
commit 636f89992a
1 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,8 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
this.setLevel(pokemon.level);
this.lastLevel = pokemon.level;
this.shinyIcon.setVisible(pokemon.isShiny());
if (this.player) {
this.expBar.setScale(pokemon.levelExp / getLevelTotalExp(pokemon.level, pokemon.species.growthRate), 1);
this.lastExp = pokemon.exp;