changed array clear

This commit is contained in:
frutescens 2024-09-20 17:24:14 -07:00
parent 46701b8251
commit a4f8b8fe6f

View File

@ -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;