mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-11 18:09:29 +02:00
ffff
This commit is contained in:
parent
571691b19a
commit
0c03cf1df6
@ -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
|
vi.spyOn(enemyPokemon, "stats", "get").mockReturnValue([20, 20, 20, 20, 20, 150]); // set enemyPokemon's speed to 150
|
||||||
|
|
||||||
game.move.select(MoveId.TACKLE);
|
game.move.select(MoveId.TACKLE);
|
||||||
await game.phaseInterceptor.to("TurnStartPhase");
|
await game.phaseInterceptor.to("TurnStartPhase", false);
|
||||||
|
|
||||||
const playerPokemonIndex = playerPokemon.getBattlerIndex();
|
const playerPokemonIndex = playerPokemon.getBattlerIndex();
|
||||||
const enemyPokemonIndex = enemyPokemon.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
|
vi.spyOn(enemyPokemon, "stats", "get").mockReturnValue([20, 20, 20, 20, 20, 50]); // set enemyPokemon's speed to 50
|
||||||
|
|
||||||
game.move.select(MoveId.TACKLE);
|
game.move.select(MoveId.TACKLE);
|
||||||
await game.phaseInterceptor.to("TurnStartPhase");
|
await game.phaseInterceptor.to("TurnStartPhase", false);
|
||||||
|
|
||||||
const playerPokemonIndex = playerPokemon.getBattlerIndex();
|
const playerPokemonIndex = playerPokemon.getBattlerIndex();
|
||||||
const enemyPokemonIndex = enemyPokemon.getBattlerIndex();
|
const enemyPokemonIndex = enemyPokemon.getBattlerIndex();
|
||||||
|
@ -40,7 +40,7 @@ describe("Items - Lock Capsule", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
game.doSelectModifier();
|
game.doSelectModifier();
|
||||||
await game.phaseInterceptor.to("SelectModifierPhase");
|
await game.phaseInterceptor.to("SelectModifierPhase", false);
|
||||||
|
|
||||||
const selectModifierPhase = game.scene.phaseManager.getCurrentPhase() as SelectModifierPhase;
|
const selectModifierPhase = game.scene.phaseManager.getCurrentPhase() as SelectModifierPhase;
|
||||||
const rerollCost = selectModifierPhase.getRerollCost(true);
|
const rerollCost = selectModifierPhase.getRerollCost(true);
|
||||||
|
@ -57,7 +57,7 @@ describe("UI - Type Hints", () => {
|
|||||||
expect.soft(dragonClawText.color).toBe("#929292");
|
expect.soft(dragonClawText.color).toBe("#929292");
|
||||||
ui.getHandler().processInput(Button.ACTION);
|
ui.getHandler().processInput(Button.ACTION);
|
||||||
});
|
});
|
||||||
await game.toNextTurn();
|
await game.phaseInterceptor.to("CommandPhase");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check status move color", async () => {
|
it("check status move color", async () => {
|
||||||
@ -81,7 +81,7 @@ describe("UI - Type Hints", () => {
|
|||||||
expect.soft(growlText.color).toBe(undefined);
|
expect.soft(growlText.color).toBe(undefined);
|
||||||
ui.getHandler().processInput(Button.ACTION);
|
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 () => {
|
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);
|
expect.soft(shadowBallText.color).toBe(undefined);
|
||||||
ui.getHandler().processInput(Button.ACTION);
|
ui.getHandler().processInput(Button.ACTION);
|
||||||
});
|
});
|
||||||
await game.toNextTurn();
|
await game.phaseInterceptor.to("CommandPhase");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user