Fix typo setting ability text to color

This commit is contained in:
Flashfyre 2024-04-03 18:15:41 -04:00
parent 382b70ed60
commit d304cae19f
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
const ability = pokemon.getAbility(true);
const abilityTextStyle = ability.id === pokemon.getSpeciesForm().abilityHidden ? TextStyle.MONEY : TextStyle.WINDOW;
this.pokemonAbilityText.setText(ability.name);
this.pokemonAbilityText.setText(getTextColor(abilityTextStyle));
this.pokemonAbilityText.setColor(getTextColor(abilityTextStyle));
this.pokemonAbilityText.setShadowColor(getTextColor(abilityTextStyle, true));
this.pokemonNatureText.setText(getNatureName(pokemon.getNature(), true));