From 1b7f4f5449bf05ae52f1101bed5cc3d99671edc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=20Dub=C3=A9?= Date: Mon, 13 May 2024 23:22:37 -0400 Subject: [PATCH] added tsdoc --- src/data/move.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 4402d9f30..a9a5e9e97 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2275,13 +2275,18 @@ export class WeatherBallTypeAttr extends VariableMoveTypeAttr { } } +/** + * Changes the move's type to match the current terrain. + * Has no effect if the user is not grounded. + * @returns whether the type change was successful + */ export class TerrainPulseTypeAttr extends VariableMoveTypeAttr { apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { if(!user.isGrounded) return false; const currentTerrain = user.scene.arena.getTerrainType(); - const type = (args[0] as Utils.IntegerHolder); + const type = (args[0] as Utils.IntegerHolder); // the move's type switch (currentTerrain) { case TerrainType.MISTY: