From 0ff40e6b5b40c1dc7fffbddeca4080e3c67a55fb Mon Sep 17 00:00:00 2001 From: muscode Date: Fri, 1 Nov 2024 10:29:31 -0600 Subject: [PATCH] make getFailedText public Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index d205777338b..fac1c8d7901 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -4850,7 +4850,7 @@ class ForceSwitchOutHelper { * @param target The target Pokémon. * @returns The failure message, or `null` if no failure. */ - getFailedText(target: Pokemon): string | null { + public getFailedText(target: Pokemon): string | null { const blockedByAbility = new Utils.BooleanHolder(false); applyAbAttrs(ForceSwitchOutImmunityAbAttr, target, blockedByAbility); return blockedByAbility.value ? i18next.t("moveTriggers:cannotBeSwitchedOut", { pokemonName: getPokemonNameWithAffix(target) }) : null;