mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
[Bug] hotfix type hint (#2146)
This commit is contained in:
parent
85c77b7445
commit
23caea1766
@ -3125,7 +3125,9 @@ export class ShowAbilityPhase extends PokemonPhase {
|
||||
const pokemon = this.getPokemon();
|
||||
|
||||
this.scene.abilityBar.showAbility(pokemon, this.passive);
|
||||
pokemon.battleData.abilityRevealed = true;
|
||||
if (pokemon.battleData) {
|
||||
pokemon.battleData.abilityRevealed = true;
|
||||
}
|
||||
|
||||
this.end();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user