Added pokemon heal phase to the turn queue

This commit is contained in:
Bertie690 2025-06-17 16:04:27 -04:00
parent 0c3ae62d1e
commit c6c3cd9f3c
2 changed files with 4 additions and 2 deletions

View File

@ -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 () => {

View File

@ -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],