mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 10:52:17 +02:00
Replace reference to Mode with UiMode and battleType with BattleStyle
This commit is contained in:
parent
50d4e6e180
commit
2f46743a6b
@ -92,7 +92,7 @@ describe("UI - Type Hints", () => {
|
||||
.enemySpecies(Species.ABRA)
|
||||
.moveset([Moves.SPLASH, Moves.SHADOW_BALL, Moves.SOAK])
|
||||
.enemyMoveset([Moves.SPLASH, Moves.TELEPORT])
|
||||
.battleType("double");
|
||||
.battleStyle("double");
|
||||
|
||||
await game.classicMode.startBattle([Species.MAGIKARP, Species.MAGIKARP]);
|
||||
game.move.select(Moves.SPLASH);
|
||||
@ -103,14 +103,14 @@ describe("UI - Type Hints", () => {
|
||||
await game.forceEnemyMove(Moves.TELEPORT);
|
||||
await game.toNextTurn();
|
||||
|
||||
game.onNextPrompt("CommandPhase", Mode.COMMAND, () => {
|
||||
game.onNextPrompt("CommandPhase", UiMode.COMMAND, () => {
|
||||
const { ui } = game.scene;
|
||||
const handler = ui.getHandler<FightUiHandler>();
|
||||
handler.processInput(Button.ACTION); // select "Fight"
|
||||
game.phaseInterceptor.unlock();
|
||||
});
|
||||
|
||||
game.onNextPrompt("CommandPhase", Mode.FIGHT, () => {
|
||||
game.onNextPrompt("CommandPhase", UiMode.FIGHT, () => {
|
||||
const { ui } = game.scene;
|
||||
const movesContainer = ui.getByName<Phaser.GameObjects.Container>(FightUiHandler.MOVES_CONTAINER_NAME);
|
||||
const shadowBallText = movesContainer
|
||||
|
Loading…
Reference in New Issue
Block a user