From 2eed38dc5567141552e7cf1343975db2fddee760 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 19 Aug 2025 19:10:31 -0500 Subject: [PATCH] Minor adjustments from code review Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com> --- src/data/moves/pokemon-move.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/moves/pokemon-move.ts b/src/data/moves/pokemon-move.ts index edaebe605a7..086024f8fb9 100644 --- a/src/data/moves/pokemon-move.ts +++ b/src/data/moves/pokemon-move.ts @@ -47,9 +47,9 @@ export class PokemonMove { * @param pokemon - The {@linkcode Pokemon} attempting to use this move * @param ignorePp - Whether to ignore checking if the move is out of PP; default `false` * @param forSelection - Whether this is being checked for move selection; default `false` - * @returns Whether this {@linkcode PokemonMove} can be selected by this Pokemon. + * @returns A tuple containing a boolean indicating whether the move can be selected, and a string with the reason if it cannot */ - public isUsable(pokemon: Pokemon, ignorePp = false, forSelection = false): [boolean, string] { + public isUsable(pokemon: Pokemon, ignorePp = false, forSelection = false): [usable: boolean, preventionText: string] { const move = this.getMove(); const moveName = move.name; @@ -86,7 +86,7 @@ export class PokemonMove { * @remarks * Does not check for PP, moves blocked by challenges, or unimplemented moves, all of which are handled by {@linkcode isUsable} * @param pokemon - The Pokemon under consideration - * @returns An array containing a boolean indicating whether the move can be selected, and a string with the reason if it cannot + * @returns An tuple containing a boolean indicating whether the move can be selected, and a string with the reason if it cannot */ public isSelectable(pokemon: Pokemon): [selectable: boolean, preventionText: string] { return pokemon.isMoveSelectable(this.moveId);