From 672d98753cd676ae7bb430c94af8389d9e9bb1ee Mon Sep 17 00:00:00 2001 From: innerthunder Date: Wed, 16 Oct 2024 22:47:43 -0700 Subject: [PATCH] docs for Infiltrator attr --- src/data/ability.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/data/ability.ts b/src/data/ability.ts index 3a892e17234..44648fb59f9 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -4347,6 +4347,15 @@ export class IgnoreProtectOnContactAbAttr extends AbAttr { } * Allows the source's moves to bypass the effects of opposing Light Screen, Reflect, Aurora Veil, Safeguard, Mist, and Substitute. */ export class InfiltratorAbAttr extends AbAttr { + /** + * Sets a flag to bypass screens, Substitute, Safeguard, and Mist + * @param pokemon n/a + * @param passive n/a + * @param simulated n/a + * @param cancelled n/a + * @param args `[0]` a {@linkcode Utils.BooleanHolder | BooleanHolder} containing the flag + * @returns `true` if the bypass flag was successfully set; `false` otherwise. + */ override apply(pokemon: Pokemon, passive: boolean, simulated: boolean, cancelled: null, args: any[]): boolean { const bypassed = args[0]; if (args[0] instanceof Utils.BooleanHolder) {