mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-23 01:59:15 +01:00
[Fix]: Updated applyAbilityOverrideToPokemon in other files and 'repeated ability message' with a new i18n key
This commit is contained in:
parent
b072f91649
commit
b82d4af75f
@ -468,7 +468,7 @@ function displayYesNoOptions(resolve) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleRepeatedAbility(resolve, pokemon: PlayerPokemon, ability: Abilities) {
|
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 = [
|
const fullOptions = [
|
||||||
{
|
{
|
||||||
label: i18next.t("menu:yes"),
|
label: i18next.t("menu:yes"),
|
||||||
|
|||||||
@ -243,7 +243,7 @@ export const FieryFalloutEncounter: MysteryEncounter = MysteryEncounterBuilder.w
|
|||||||
queueEncounterMessage(`${namespace}:option.2.target_burned`);
|
queueEncounterMessage(`${namespace}:option.2.target_burned`);
|
||||||
|
|
||||||
// Also permanently change the burned Pokemon's ability to Heatproof
|
// Also permanently change the burned Pokemon's ability to Heatproof
|
||||||
applyAbilityOverrideToPokemon(chosenPokemon, Abilities.HEATPROOF);
|
applyAbilityOverrideToPokemon(chosenPokemon, Abilities.HEATPROOF, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user