From 79fefa9f67c302611182aed534a87e59cc255550 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Sat, 1 Feb 2025 12:58:55 -0600 Subject: [PATCH] Fix magic bounce accuracy check test --- src/test/abilities/magic_bounce.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/abilities/magic_bounce.test.ts b/src/test/abilities/magic_bounce.test.ts index 6eb851dfca4..0ca54c10bec 100644 --- a/src/test/abilities/magic_bounce.test.ts +++ b/src/test/abilities/magic_bounce.test.ts @@ -205,15 +205,15 @@ describe("Abilities - Magic Bounce", () => { }); it("should bounce back a move before the accuracy check", async () => { - game.override.moveset([ Moves.SPLASH ]); + game.override.moveset([ Moves.SPORE ]); await game.classicMode.startBattle([ Species.MAGIKARP ]); const attacker = game.scene.getPlayerPokemon()!; vi.spyOn(attacker, "getAccuracyMultiplier").mockReturnValue(0.0); - game.move.select(Moves.SPLASH); + game.move.select(Moves.SPORE); await game.phaseInterceptor.to("BerryPhase"); - expect(game.scene.getPlayerPokemon()!.getStatStage(Stat.ATK)).toBe(-1); + expect(game.scene.getPlayerPokemon()!.status).toBeUndefined(); }); it("should take the accuracy of the magic bounce user into account", async () => {