From 8ef191c29de3de63883e61d32b3f4aea5fb9bdb6 Mon Sep 17 00:00:00 2001 From: frutescens Date: Fri, 20 Sep 2024 15:57:37 -0700 Subject: [PATCH] typedocs --- src/phases/select-target-phase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases/select-target-phase.ts b/src/phases/select-target-phase.ts index c8205f6523d..df4c04fc581 100644 --- a/src/phases/select-target-phase.ts +++ b/src/phases/select-target-phase.ts @@ -24,7 +24,7 @@ export class SelectTargetPhase extends PokemonPhase { const moveObject = allMoves[move!]; const hasTargetRestriction = user.isMoveTargetRestricted(moveObject.id, user, fieldSide[targets[0]]); if (moveObject && hasTargetRestriction) { - const errorMessage = user.getRestrictingTag(move, hasTargetRestriction)!.selectionDeniedText(user, moveObject.id); + const errorMessage = user.getRestrictingTag(move!, hasTargetRestriction)!.selectionDeniedText(user, moveObject.id); user.scene.queueMessage(i18next.t(errorMessage, { moveName: moveObject.name }), 0, true); targets.length = 0; }