mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Ensure shiny icon is visible in battle info when shiny
This commit is contained in:
parent
ed5921eb10
commit
636f89992a
@ -181,6 +181,8 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
|||||||
this.setLevel(pokemon.level);
|
this.setLevel(pokemon.level);
|
||||||
this.lastLevel = pokemon.level;
|
this.lastLevel = pokemon.level;
|
||||||
|
|
||||||
|
this.shinyIcon.setVisible(pokemon.isShiny());
|
||||||
|
|
||||||
if (this.player) {
|
if (this.player) {
|
||||||
this.expBar.setScale(pokemon.levelExp / getLevelTotalExp(pokemon.level, pokemon.species.growthRate), 1);
|
this.expBar.setScale(pokemon.levelExp / getLevelTotalExp(pokemon.level, pokemon.species.growthRate), 1);
|
||||||
this.lastExp = pokemon.exp;
|
this.lastExp = pokemon.exp;
|
||||||
|
Loading…
Reference in New Issue
Block a user