[Bug] hotfix type hint (#2146)

This commit is contained in:
Adrian T 2024-06-13 02:39:37 +08:00 committed by GitHub
parent 85c77b7445
commit 23caea1766
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}