From 9b7ea69c93e5a1e6add1e81d5b5103c6d5d9ad5d Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Tue, 3 Jun 2025 17:54:00 -0400 Subject: [PATCH] Fixed battle tets --- test/battle/battle.test.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/test/battle/battle.test.ts b/test/battle/battle.test.ts index 16d1bdd3674..de5709bfe8c 100644 --- a/test/battle/battle.test.ts +++ b/test/battle/battle.test.ts @@ -9,7 +9,6 @@ import { EnemyCommandPhase } from "#app/phases/enemy-command-phase"; import { LoginPhase } from "#app/phases/login-phase"; import { NextEncounterPhase } from "#app/phases/next-encounter-phase"; import { SelectGenderPhase } from "#app/phases/select-gender-phase"; -import { SelectModifierPhase } from "#app/phases/select-modifier-phase"; import { SelectStarterPhase } from "#app/phases/select-starter-phase"; import { SummonPhase } from "#app/phases/summon-phase"; import { SwitchPhase } from "#app/phases/switch-phase"; @@ -90,15 +89,10 @@ describe("Test Battle Phase", () => { }, 20000); it("do attack wave 3 - single battle - regular - OHKO", async () => { - game.override - .enemySpecies(Species.RATTATA) - .startingLevel(2000) - .startingWave(3) - .battleStyle("single") - .enemyMoveset([Moves.TACKLE, Moves.TACKLE, Moves.TACKLE, Moves.TACKLE]); + game.override.enemySpecies(Species.RATTATA).startingLevel(2000).battleStyle("single"); await game.classicMode.startBattle([Species.MEWTWO]); - game.move.select(Moves.TACKLE); - await game.phaseInterceptor.runFrom(EnemyCommandPhase).to(SelectModifierPhase, false); + game.move.use(Moves.TACKLE); + await game.phaseInterceptor.to("SelectModifierPhase"); }, 20000); it("do attack wave 3 - single battle - regular - NO OHKO with opponent using non damage attack", async () => {