Apply suggestions from code review

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
Mumble 2024-08-22 12:30:53 -07:00 committed by GitHub
parent f74a74d2d9
commit d9ec897658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,4 @@
import { BattleStat } from "#app/data/battle-stat";
import { EnemyCommandPhase } from "#app/phases/enemy-command-phase";
import { TurnEndPhase } from "#app/phases/turn-end-phase";
import { TurnStartPhase } from "#app/phases/turn-start-phase";
import { Abilities } from "#enums/abilities";
@ -50,7 +49,7 @@ describe("Abilities - Mycelium Might", () => {
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 speedOrder = phase.getSpeedOrder();
const commandOrder = phase.getCommandOrder();
@ -94,7 +93,7 @@ describe("Abilities - Mycelium Might", () => {
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 speedOrder = phase.getSpeedOrder();
const commandOrder = phase.getCommandOrder();

View File

@ -5,7 +5,6 @@ import GameManager from "#test/utils/gameManager";
import Phaser from "phaser";
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
import { TurnStartPhase } from "#app/phases/turn-start-phase";
import { EnemyCommandPhase } from "#app/phases/enemy-command-phase";
describe("Abilities - Stall", () => {
let phaserGame: Phaser.Game;
@ -45,7 +44,7 @@ describe("Abilities - Stall", () => {
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 speedOrder = phase.getSpeedOrder();
const commandOrder = phase.getCommandOrder();
@ -63,7 +62,7 @@ describe("Abilities - Stall", () => {
game.move.select(Moves.TACKLE);
await game.phaseInterceptor.run(EnemyCommandPhase);
await game.phaseInterceptor.run(TurnStartPhase, false);
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
const speedOrder = phase.getSpeedOrder();
const commandOrder = phase.getCommandOrder();
@ -82,7 +81,7 @@ describe("Abilities - Stall", () => {
game.move.select(Moves.TACKLE);
await game.phaseInterceptor.run(EnemyCommandPhase);
await game.phaseInterceptor.run(TurnStartPhase, false);
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
const speedOrder = phase.getSpeedOrder();
const commandOrder = phase.getCommandOrder();