From f361b8efedd5f185d62a927097218d400821f71d Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:14:35 -0500 Subject: [PATCH] Adjust fly tests to expect pp reduction properly --- test/moves/fly.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/moves/fly.test.ts b/test/moves/fly.test.ts index dc40b4a439b..4bc743750c2 100644 --- a/test/moves/fly.test.ts +++ b/test/moves/fly.test.ts @@ -85,6 +85,7 @@ describe("Moves - Fly", () => { const playerPokemon = game.field.getPlayerPokemon(); game.move.select(MoveId.FLY); + await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]); await game.phaseInterceptor.to("TurnEndPhase"); expect(playerPokemon.getTag(BattlerTagType.FLYING)).toBeUndefined(); @@ -94,7 +95,7 @@ describe("Moves - Fly", () => { expect(playerFly?.ppUsed).toBe(0); }); - it("should be cancelled when another Pokemon uses Gravity", async () => { + it("should be interrupted when another Pokemon uses Gravity", async () => { game.override.enemyMoveset([MoveId.SPLASH, MoveId.GRAVITY]); await game.classicMode.startBattle([SpeciesId.MAGIKARP]); @@ -115,6 +116,6 @@ describe("Moves - Fly", () => { expect(enemyPokemon.hp).toBe(enemyPokemon.getMaxHp()); const playerFly = playerPokemon.getMoveset().find(mv => mv && mv.moveId === MoveId.FLY); - expect(playerFly?.ppUsed).toBe(0); + expect(playerFly?.ppUsed).toBe(1); }); });