[Bug] Fixed bug where pokemon info container shows form of pokemon that doesn't have it if the previously caught pokemon has a form (#2029)
* Fixed bug where pokemon info container will show form of a pokemon that doesn't have it if the previously caught pokemon has a form * Updated pokemonFormText to also disable interactive section if there was one
This commit is contained in:
parent
91abddb693
commit
5de0185c0a
|
@ -247,6 +247,10 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
|
|||
} else {
|
||||
this.pokemonFormText.disableInteractive();
|
||||
}
|
||||
} else {
|
||||
this.pokemonFormLabelText.setVisible(false);
|
||||
this.pokemonFormText.setVisible(false);
|
||||
this.pokemonFormText.disableInteractive();
|
||||
}
|
||||
|
||||
const abilityTextStyle = pokemon.abilityIndex === (pokemon.species.ability2 ? 2 : 1) ? TextStyle.MONEY : TextStyle.WINDOW;
|
||||
|
|
Loading…
Reference in New Issue