mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
make getFailedText public
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
bad0494278
commit
0ff40e6b5b
@ -4850,7 +4850,7 @@ class ForceSwitchOutHelper {
|
|||||||
* @param target The target Pokémon.
|
* @param target The target Pokémon.
|
||||||
* @returns The failure message, or `null` if no failure.
|
* @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);
|
const blockedByAbility = new Utils.BooleanHolder(false);
|
||||||
applyAbAttrs(ForceSwitchOutImmunityAbAttr, target, blockedByAbility);
|
applyAbAttrs(ForceSwitchOutImmunityAbAttr, target, blockedByAbility);
|
||||||
return blockedByAbility.value ? i18next.t("moveTriggers:cannotBeSwitchedOut", { pokemonName: getPokemonNameWithAffix(target) }) : null;
|
return blockedByAbility.value ? i18next.t("moveTriggers:cannotBeSwitchedOut", { pokemonName: getPokemonNameWithAffix(target) }) : null;
|
||||||
|
Loading…
Reference in New Issue
Block a user