This commit is contained in:
Bertie690 2025-08-01 21:29:14 -04:00
parent 571691b19a
commit 0c03cf1df6
3 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ describe("Battle order", () => {
vi.spyOn(enemyPokemon, "stats", "get").mockReturnValue([20, 20, 20, 20, 20, 150]); // set enemyPokemon's speed to 150
game.move.select(MoveId.TACKLE);
await game.phaseInterceptor.to("TurnStartPhase");
await game.phaseInterceptor.to("TurnStartPhase", false);
const playerPokemonIndex = playerPokemon.getBattlerIndex();
const enemyPokemonIndex = enemyPokemon.getBattlerIndex();
@ -58,7 +58,7 @@ describe("Battle order", () => {
vi.spyOn(enemyPokemon, "stats", "get").mockReturnValue([20, 20, 20, 20, 20, 50]); // set enemyPokemon's speed to 50
game.move.select(MoveId.TACKLE);
await game.phaseInterceptor.to("TurnStartPhase");
await game.phaseInterceptor.to("TurnStartPhase", false);
const playerPokemonIndex = playerPokemon.getBattlerIndex();
const enemyPokemonIndex = enemyPokemon.getBattlerIndex();

View File

@ -40,7 +40,7 @@ describe("Items - Lock Capsule", () => {
});
game.doSelectModifier();
await game.phaseInterceptor.to("SelectModifierPhase");
await game.phaseInterceptor.to("SelectModifierPhase", false);
const selectModifierPhase = game.scene.phaseManager.getCurrentPhase() as SelectModifierPhase;
const rerollCost = selectModifierPhase.getRerollCost(true);

View File

@ -57,7 +57,7 @@ describe("UI - Type Hints", () => {
expect.soft(dragonClawText.color).toBe("#929292");
ui.getHandler().processInput(Button.ACTION);
});
await game.toNextTurn();
await game.phaseInterceptor.to("CommandPhase");
});
it("check status move color", async () => {
@ -81,7 +81,7 @@ describe("UI - Type Hints", () => {
expect.soft(growlText.color).toBe(undefined);
ui.getHandler().processInput(Button.ACTION);
});
await game.toNextTurn();
await game.phaseInterceptor.to("CommandPhase");
});
it("should show the proper hint for a move in doubles after one of the enemy pokemon flees", async () => {
@ -117,6 +117,6 @@ describe("UI - Type Hints", () => {
expect.soft(shadowBallText.color).toBe(undefined);
ui.getHandler().processInput(Button.ACTION);
});
await game.toNextTurn();
await game.phaseInterceptor.to("CommandPhase");
});
});