mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Apply suggestions from code review
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
parent
f74a74d2d9
commit
d9ec897658
@ -1,5 +1,4 @@
|
|||||||
import { BattleStat } from "#app/data/battle-stat";
|
import { BattleStat } from "#app/data/battle-stat";
|
||||||
import { EnemyCommandPhase } from "#app/phases/enemy-command-phase";
|
|
||||||
import { TurnEndPhase } from "#app/phases/turn-end-phase";
|
import { TurnEndPhase } from "#app/phases/turn-end-phase";
|
||||||
import { TurnStartPhase } from "#app/phases/turn-start-phase";
|
import { TurnStartPhase } from "#app/phases/turn-start-phase";
|
||||||
import { Abilities } from "#enums/abilities";
|
import { Abilities } from "#enums/abilities";
|
||||||
@ -50,7 +49,7 @@ describe("Abilities - Mycelium Might", () => {
|
|||||||
|
|
||||||
game.move.select(Moves.BABY_DOLL_EYES);
|
game.move.select(Moves.BABY_DOLL_EYES);
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.to(TurnStartPhase, false);
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const speedOrder = phase.getSpeedOrder();
|
const speedOrder = phase.getSpeedOrder();
|
||||||
const commandOrder = phase.getCommandOrder();
|
const commandOrder = phase.getCommandOrder();
|
||||||
@ -94,7 +93,7 @@ describe("Abilities - Mycelium Might", () => {
|
|||||||
|
|
||||||
game.move.select(Moves.QUICK_ATTACK);
|
game.move.select(Moves.QUICK_ATTACK);
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(TurnStartPhase, false);
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const speedOrder = phase.getSpeedOrder();
|
const speedOrder = phase.getSpeedOrder();
|
||||||
const commandOrder = phase.getCommandOrder();
|
const commandOrder = phase.getCommandOrder();
|
||||||
|
@ -5,7 +5,6 @@ import GameManager from "#test/utils/gameManager";
|
|||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
import { TurnStartPhase } from "#app/phases/turn-start-phase";
|
import { TurnStartPhase } from "#app/phases/turn-start-phase";
|
||||||
import { EnemyCommandPhase } from "#app/phases/enemy-command-phase";
|
|
||||||
|
|
||||||
describe("Abilities - Stall", () => {
|
describe("Abilities - Stall", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
@ -45,7 +44,7 @@ describe("Abilities - Stall", () => {
|
|||||||
|
|
||||||
game.move.select(Moves.QUICK_ATTACK);
|
game.move.select(Moves.QUICK_ATTACK);
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(TurnStartPhase, false);
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const speedOrder = phase.getSpeedOrder();
|
const speedOrder = phase.getSpeedOrder();
|
||||||
const commandOrder = phase.getCommandOrder();
|
const commandOrder = phase.getCommandOrder();
|
||||||
@ -63,7 +62,7 @@ describe("Abilities - Stall", () => {
|
|||||||
|
|
||||||
game.move.select(Moves.TACKLE);
|
game.move.select(Moves.TACKLE);
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(TurnStartPhase, false);
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const speedOrder = phase.getSpeedOrder();
|
const speedOrder = phase.getSpeedOrder();
|
||||||
const commandOrder = phase.getCommandOrder();
|
const commandOrder = phase.getCommandOrder();
|
||||||
@ -82,7 +81,7 @@ describe("Abilities - Stall", () => {
|
|||||||
|
|
||||||
game.move.select(Moves.TACKLE);
|
game.move.select(Moves.TACKLE);
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(TurnStartPhase, false);
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const speedOrder = phase.getSpeedOrder();
|
const speedOrder = phase.getSpeedOrder();
|
||||||
const commandOrder = phase.getCommandOrder();
|
const commandOrder = phase.getCommandOrder();
|
||||||
|
Loading…
Reference in New Issue
Block a user