From da492cfac75ae116ce9b44e24721d4d74a83e3b8 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 7 Mar 2024 20:13:31 -0500 Subject: [PATCH] Metronome doesn't select unimplemented moves --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 15b9cd251..ac095bd64 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1951,7 +1951,7 @@ export class RandomMovesetMoveAttr extends OverrideMoveEffectAttr { export class RandomMoveAttr extends OverrideMoveEffectAttr { apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise { return new Promise(resolve => { - const moveIds = Utils.getEnumValues(Moves).filter(m => !allMoves[m].hasFlag(MoveFlags.IGNORE_VIRTUAL)); + const moveIds = Utils.getEnumValues(Moves).filter(m => !allMoves[m].hasFlag(MoveFlags.IGNORE_VIRTUAL) && !allMoves[m].name.endsWith(' (N)')); const moveId = moveIds[user.randSeedInt(moveIds.length)]; const moveTargets = getMoveTargets(user, moveId);