From dfa10cccfd5d98cbf2bf58c8d1cb8e3180201922 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:14:13 -0700 Subject: [PATCH] Fix test --- src/test/moves/after_you.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/moves/after_you.test.ts b/src/test/moves/after_you.test.ts index 24a117c07cb..0348e16291f 100644 --- a/src/test/moves/after_you.test.ts +++ b/src/test/moves/after_you.test.ts @@ -38,20 +38,21 @@ describe("Moves - After You", () => { }); it("makes the target move immediately after the user", async () => { - await game.startBattle([Species.REGIELEKI, Species.SHUCKLE]); + await game.classicMode.startBattle([Species.REGIELEKI, Species.SHUCKLE]); game.move.select(Moves.AFTER_YOU, 0, BattlerIndex.PLAYER_2); game.move.select(Moves.SPLASH, 1); await game.phaseInterceptor.to("MoveEffectPhase"); - await game.phaseInterceptor.to(MovePhase); + await game.phaseInterceptor.to(MovePhase, false); const phase = game.scene.getCurrentPhase() as MovePhase; expect(phase.pokemon).toBe(game.scene.getPlayerField()[1]); + await game.phaseInterceptor.to("MoveEndPhase"); }, TIMEOUT); it("fails if target already moved", async () => { game.override.enemySpecies(Species.SHUCKLE); - await game.startBattle([Species.REGIELEKI, Species.PIKACHU]); + await game.classicMode.startBattle([Species.REGIELEKI, Species.PIKACHU]); game.move.select(Moves.SPLASH); game.move.select(Moves.AFTER_YOU, 1, BattlerIndex.PLAYER);