[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