From 31a21c67e0206979994ad43fbf4867fa045c4f40 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Tue, 20 May 2025 03:22:41 -0700 Subject: [PATCH] Fix instruct test --- test/moves/instruct.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/moves/instruct.test.ts b/test/moves/instruct.test.ts index dd25db4ec90..a5d8a35c3c0 100644 --- a/test/moves/instruct.test.ts +++ b/test/moves/instruct.test.ts @@ -200,6 +200,7 @@ describe("Moves - Instruct", () => { expect(karp1.isFainted()).toBe(true); expect(karp2.isFainted()).toBe(true); }); + it("should allow for dancer copying of instructed dance move", async () => { game.override.battleStyle("double").enemyMoveset([Moves.INSTRUCT, Moves.SPLASH]).enemyLevel(1000); await game.classicMode.startBattle([Species.ORICORIO, Species.VOLCARONA]); @@ -377,7 +378,7 @@ describe("Moves - Instruct", () => { .enemyMoveset([Moves.SPLASH, Moves.PSYCHIC_TERRAIN]); await game.classicMode.startBattle([Species.BANETTE, Species.KLEFKI]); - game.move.select(Moves.QUICK_ATTACK, BattlerIndex.PLAYER, BattlerIndex.ENEMY); // succeeds due to terrain no + game.move.select(Moves.QUICK_ATTACK, BattlerIndex.PLAYER, BattlerIndex.ENEMY); game.move.select(Moves.SPLASH, BattlerIndex.PLAYER_2); await game.forceEnemyMove(Moves.SPLASH); await game.forceEnemyMove(Moves.PSYCHIC_TERRAIN); @@ -388,10 +389,9 @@ describe("Moves - Instruct", () => { await game.setTurnOrder([BattlerIndex.PLAYER_2, BattlerIndex.PLAYER, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2]); await game.phaseInterceptor.to("TurnEndPhase", false); - // quick attack failed when instructed const banette = game.scene.getPlayerPokemon()!; expect(banette.getLastXMoves(-1)[1].move).toBe(Moves.QUICK_ATTACK); - expect(banette.getLastXMoves(-1)[1].result).toBe(MoveResult.FAIL); + expect(banette.getLastXMoves(-1)[1].result).toBe(MoveResult.MISS); }); it("should still work w/ prankster in psychic terrain", async () => {