From 499a7eb34424cfa0625161c53fc032442d4177d6 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Sun, 29 Dec 2024 12:10:03 -0500 Subject: [PATCH] Add docs from missed conversations --- src/data/move.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index a7026499226..1e9910b28dc 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -6541,10 +6541,12 @@ export class RandomMoveAttr extends CallMoveAttr { /** * Attribute used to call a random move in the user or party's moveset. * Used for {@linkcode Moves.ASSIST} and {@linkcode Moves.SLEEP_TALK} - * @extends CallMoveAttr to use the apply function on a moveId + * + * Fails if the user has no callable moves. + * + * Invalid moves are indicated by what is passed in to invalidMoves: {@linkcode invalidAssistMoves} or {@linkcode invalidSleepTalkMoves} + * @extends RandomMoveAttr to use the callMove function on a moveId * @see {@linkcode getCondition} for move selection - * Fails if the user has no callable moves - * Invalid moves are indicated by what is passed in to invalidMoves: {@constant invalidAssistMoves} or {@constant invalidSleepTalkMoves} */ export class RandomMovesetMoveAttr extends CallMoveAttr { private includeParty: boolean; @@ -6557,11 +6559,10 @@ export class RandomMovesetMoveAttr extends CallMoveAttr { /** * User calls a random moveId selected in {@linkcode getCondition} - * @param {Pokemon} user Pokemon that used the move and will call a random move - * @param {Pokemon} target Pokemon that will be targeted by the random move (if single target) - * @param {Move} move Move being used - * @param {any[]} args Unused - * @returns {Promise} + * @param user Pokemon that used the move and will call a random move + * @param target Pokemon that will be targeted by the random move (if single target) + * @param move Move being used + * @param args Unused */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise { return super.apply(user, target, allMoves[this.moveId], args);