mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 21:39:28 +02:00
Added pokemon heal phase to the turn queue
This commit is contained in:
parent
0c3ae62d1e
commit
c6c3cd9f3c
@ -48,7 +48,7 @@ describe("Move - Pollen Puff", () => {
|
|||||||
|
|
||||||
expect(karp1.hp).toBeLessThan(karp1.getMaxHp());
|
expect(karp1.hp).toBeLessThan(karp1.getMaxHp());
|
||||||
expect(omantye.hp).toBeCloseTo(0.5 * omantye.getMaxHp() + 1, 1);
|
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 () => {
|
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),
|
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 () => {
|
it("should not heal more than once if the user has a source of multi-hit", async () => {
|
||||||
|
@ -64,6 +64,7 @@ import { PostGameOverPhase } from "#app/phases/post-game-over-phase";
|
|||||||
import { RevivalBlessingPhase } from "#app/phases/revival-blessing-phase";
|
import { RevivalBlessingPhase } from "#app/phases/revival-blessing-phase";
|
||||||
|
|
||||||
import type { PhaseClass, PhaseString } from "#app/@types/phase-types";
|
import type { PhaseClass, PhaseString } from "#app/@types/phase-types";
|
||||||
|
import { PokemonHealPhase } from "#app/phases/pokemon-heal-phase";
|
||||||
|
|
||||||
export interface PromptHandler {
|
export interface PromptHandler {
|
||||||
phaseTarget?: string;
|
phaseTarget?: string;
|
||||||
@ -143,6 +144,7 @@ export default class PhaseInterceptor {
|
|||||||
[AttemptRunPhase, this.startPhase],
|
[AttemptRunPhase, this.startPhase],
|
||||||
[SelectBiomePhase, this.startPhase],
|
[SelectBiomePhase, this.startPhase],
|
||||||
[MysteryEncounterPhase, this.startPhase],
|
[MysteryEncounterPhase, this.startPhase],
|
||||||
|
[PokemonHealPhase, this.startPhase],
|
||||||
[MysteryEncounterOptionSelectedPhase, this.startPhase],
|
[MysteryEncounterOptionSelectedPhase, this.startPhase],
|
||||||
[MysteryEncounterBattlePhase, this.startPhase],
|
[MysteryEncounterBattlePhase, this.startPhase],
|
||||||
[MysteryEncounterRewardsPhase, this.startPhase],
|
[MysteryEncounterRewardsPhase, this.startPhase],
|
||||||
|
Loading…
Reference in New Issue
Block a user