From b82d4af75f8d1075d91b3e63019357f7c2af3b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=AAs=20Antunes?= Date: Sat, 7 Jun 2025 18:49:27 +0100 Subject: [PATCH] [Fix]: Updated applyAbilityOverrideToPokemon in other files and 'repeated ability message' with a new i18n key --- .../mystery-encounters/encounters/clowning-around-encounter.ts | 2 +- .../mystery-encounters/encounters/fiery-fallout-encounter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/mystery-encounters/encounters/clowning-around-encounter.ts b/src/data/mystery-encounters/encounters/clowning-around-encounter.ts index 46f39610ee7..88cf6334fcd 100644 --- a/src/data/mystery-encounters/encounters/clowning-around-encounter.ts +++ b/src/data/mystery-encounters/encounters/clowning-around-encounter.ts @@ -468,7 +468,7 @@ function displayYesNoOptions(resolve) { } function handleRepeatedAbility(resolve, pokemon: PlayerPokemon, ability: Abilities) { - showEncounterText("Your pokemon already has this ability. Are you sure you want to apply it?"); + showEncounterText(`${namespace}:option.1.repeated_ability`); const fullOptions = [ { label: i18next.t("menu:yes"), diff --git a/src/data/mystery-encounters/encounters/fiery-fallout-encounter.ts b/src/data/mystery-encounters/encounters/fiery-fallout-encounter.ts index 0364b98abe2..39b6d1d3f9d 100644 --- a/src/data/mystery-encounters/encounters/fiery-fallout-encounter.ts +++ b/src/data/mystery-encounters/encounters/fiery-fallout-encounter.ts @@ -243,7 +243,7 @@ export const FieryFalloutEncounter: MysteryEncounter = MysteryEncounterBuilder.w queueEncounterMessage(`${namespace}:option.2.target_burned`); // Also permanently change the burned Pokemon's ability to Heatproof - applyAbilityOverrideToPokemon(chosenPokemon, Abilities.HEATPROOF); + applyAbilityOverrideToPokemon(chosenPokemon, Abilities.HEATPROOF, false); } }