From a4f8b8fe6f856b7c2e7dcf7bcbcd4b3696b71245 Mon Sep 17 00:00:00 2001 From: frutescens Date: Fri, 20 Sep 2024 17:24:14 -0700 Subject: [PATCH] changed array clear --- 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 b9291d7d92b..6f11f984c4b 100644 --- a/src/phases/select-target-phase.ts +++ b/src/phases/select-target-phase.ts @@ -25,7 +25,7 @@ export class SelectTargetPhase extends PokemonPhase { if (moveObject && user.isMoveTargetRestricted(moveObject.id, user, fieldSide[targets[0]])) { const errorMessage = user.getRestrictingTag(move!, user, fieldSide[targets[0]])!.selectionDeniedText(user, moveObject.id); user.scene.queueMessage(i18next.t(errorMessage, { moveName: moveObject.name }), 0, true); - targets.length = 0; + targets = []; } if (targets.length < 1) { this.scene.currentBattle.turnCommands[this.fieldIndex] = null;