From b273c1c2eef82ed173b6ed91a0d469f980983bcc Mon Sep 17 00:00:00 2001 From: torranx Date: Thu, 3 Oct 2024 02:49:37 +0800 Subject: [PATCH] add docs --- src/data/move.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/data/move.ts b/src/data/move.ts index b5d259c7257..3fcdcc62e5b 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -3990,7 +3990,19 @@ export class VariableMoveTypeAttr extends MoveAttr { } } +/** + * Attribute used for Tera Starstorm that changes the move type to Stellar + * @extends VariableMoveTypeAttr + */ export class TeraStarstormTypeAttr extends VariableMoveTypeAttr { + /** + * + * @param user the {@linkcode Pokemon} using the move + * @param target n/a + * @param move n/a + * @param args[0] {@linkcode Utils.NumberHolder} the move type + * @returns `true` if the move type is changed to {@linkcode Type.STELLAR}, `false` otherwise + */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { if (user.isTerastallized() && user.species.speciesId === Species.TERAPAGOS) { const moveType = args[0] as Utils.NumberHolder;