From 5de0185c0a05be610f1a47a471b292343f0de352 Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:41:06 +1000 Subject: [PATCH] [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 --- src/ui/pokemon-info-container.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/pokemon-info-container.ts b/src/ui/pokemon-info-container.ts index 0a63c817762..4c3e9feb2f2 100644 --- a/src/ui/pokemon-info-container.ts +++ b/src/ui/pokemon-info-container.ts @@ -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;