From de8eedd41abc6552e5ad01f5e1989fd45342d8b9 Mon Sep 17 00:00:00 2001 From: innerthunder Date: Wed, 25 Sep 2024 10:41:58 -0700 Subject: [PATCH] Add docs --- src/data/move.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/data/move.ts b/src/data/move.ts index 0b8b03fcae8..3e2dadc9fc4 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -4581,11 +4581,24 @@ export class AddBattlerTagAttr extends MoveEffectAttr { } } +/** + * Adds a {@link https://bulbapedia.bulbagarden.net/wiki/Seeding | Seeding} effect to the target + * as seen with Leech Seed and Sappy Seed. + * @extends AddBattlerTagAttr + */ export class LeechSeedAttr extends AddBattlerTagAttr { constructor() { super(BattlerTagType.SEEDED); } + /** + * Adds a Seeding effect to the target if the target does not have an active Substitute. + * @param user the {@linkcode Pokemon} using the move + * @param target the {@linkcode Pokemon} targeted by the move + * @param move the {@linkcode Move} invoking this effect + * @param args n/a + * @returns `true` if the effect successfully applies; `false` otherwise + */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { return !move.hitsSubstitute(user, target) && super.apply(user, target, move, args);