From c6c3cd9f3c04ef20991428a02beea2149b3e107f Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Tue, 17 Jun 2025 16:04:27 -0400 Subject: [PATCH] Added pokemon heal phase to the turn queue --- test/moves/pollen_puff.test.ts | 4 ++-- test/testUtils/phaseInterceptor.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/moves/pollen_puff.test.ts b/test/moves/pollen_puff.test.ts index e938109d381..0a9b6d9cf24 100644 --- a/test/moves/pollen_puff.test.ts +++ b/test/moves/pollen_puff.test.ts @@ -48,7 +48,7 @@ describe("Move - Pollen Puff", () => { expect(karp1.hp).toBeLessThan(karp1.getMaxHp()); expect(omantye.hp).toBeCloseTo(0.5 * omantye.getMaxHp() + 1, 1); - // expect(game.phaseInterceptor.log).toContain("PokemonHealPhase"); + expect(game.phaseInterceptor.log).toContain("PokemonHealPhase"); }); it.todo("should display message & count as failed when hitting a full HP ally", async () => { @@ -69,7 +69,7 @@ describe("Move - Pollen Puff", () => { pokemonName: getPokemonNameWithAffix(omantye), }), ); - // expect(game.phaseInterceptor.log).not.toContain("PokemonHealPhase"); + expect(game.phaseInterceptor.log).not.toContain("PokemonHealPhase"); }); it("should not heal more than once if the user has a source of multi-hit", async () => { diff --git a/test/testUtils/phaseInterceptor.ts b/test/testUtils/phaseInterceptor.ts index 9d046fc85ba..e1033f87b15 100644 --- a/test/testUtils/phaseInterceptor.ts +++ b/test/testUtils/phaseInterceptor.ts @@ -64,6 +64,7 @@ import { PostGameOverPhase } from "#app/phases/post-game-over-phase"; import { RevivalBlessingPhase } from "#app/phases/revival-blessing-phase"; import type { PhaseClass, PhaseString } from "#app/@types/phase-types"; +import { PokemonHealPhase } from "#app/phases/pokemon-heal-phase"; export interface PromptHandler { phaseTarget?: string; @@ -143,6 +144,7 @@ export default class PhaseInterceptor { [AttemptRunPhase, this.startPhase], [SelectBiomePhase, this.startPhase], [MysteryEncounterPhase, this.startPhase], + [PokemonHealPhase, this.startPhase], [MysteryEncounterOptionSelectedPhase, this.startPhase], [MysteryEncounterBattlePhase, this.startPhase], [MysteryEncounterRewardsPhase, this.startPhase],