make getFailedText public

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
muscode 2024-11-01 10:29:31 -06:00 committed by GitHub
parent bad0494278
commit 0ff40e6b5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;