diff --git a/src/data/moves/move.ts b/src/data/moves/move.ts index 1debe59e09a..7d6e5d6e5f7 100644 --- a/src/data/moves/move.ts +++ b/src/data/moves/move.ts @@ -1366,7 +1366,7 @@ export class PreMoveMessageAttr extends MoveAttr { * @param message - The message to display before move use, either as a string or a function producing one. * @remarks * If {@linkcode message} evaluates to an empty string (`''`), no message will be displayed - * (though the move will still suceed). + * (though the move will still succeed). */ constructor(message: string | ((user: Pokemon, target: Pokemon, move: Move) => string)) { super(); @@ -1380,8 +1380,9 @@ export class PreMoveMessageAttr extends MoveAttr { if (message) { globalScene.queueMessage(message, 500); + return true; } - return true; + return false; } } diff --git a/test/moves/chilly_reception.test.ts b/test/moves/chilly_reception.test.ts index c265215b60c..e94fc84e564 100644 --- a/test/moves/chilly_reception.test.ts +++ b/test/moves/chilly_reception.test.ts @@ -115,7 +115,7 @@ describe("Moves - Chilly Reception", () => { ); }); - it("should not display message if called indirectly", async () => { + it("should succeed without message if called indirectly", async () => { vi.spyOn(RandomMoveAttr.prototype, "getMoveOverride").mockReturnValue(Moves.CHILLY_RECEPTION); await game.classicMode.startBattle([Species.SLOWKING, Species.MEOWTH]);