From 465d95bbd4eea3db7af0dde69bada7374c944035 Mon Sep 17 00:00:00 2001 From: Ei <59531041+Mewtwo2387@users.noreply.github.com> Date: Sat, 15 Jun 2024 01:18:20 +0100 Subject: [PATCH] [Bug] Fixed frisk not setting revealedAbility flag (#2238) --- src/data/ability.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/ability.ts b/src/data/ability.ts index f0c6443eca6..d224791d7c9 100755 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -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; }