mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 05:52:17 +02:00
[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 {
|
} else {
|
||||||
this.pokemonFormText.disableInteractive();
|
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;
|
const abilityTextStyle = pokemon.abilityIndex === (pokemon.species.ability2 ? 2 : 1) ? TextStyle.MONEY : TextStyle.WINDOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user