[Bug] Fixed frisk not setting revealedAbility flag (#2238)

This commit is contained in:
Ei 2024-06-15 01:18:20 +01:00 committed by GitHub
parent fc73a26372
commit 465d95bbd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -2439,6 +2439,9 @@ export class FriskAbAttr extends PostSummonAbAttr {
applyPostSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean {
for (const opponent of pokemon.getOpponents()) {
pokemon.scene.queueMessage(getPokemonMessage(pokemon, " frisked " + opponent.name + "'s " + opponent.getAbility().name + "!"));
if (opponent.battleData) {
opponent.battleData.abilityRevealed = true;
}
}
return true;
}