From 237b3e28fc6c23b8444a90cc6564a0226125b7ed Mon Sep 17 00:00:00 2001 From: AJ Fontaine Date: Thu, 3 Oct 2024 15:04:19 -0400 Subject: [PATCH] Fix Scale Shot flaky test --- src/test/moves/scale_shot.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/moves/scale_shot.test.ts b/src/test/moves/scale_shot.test.ts index 412ce6687c6..1c495255c7a 100644 --- a/src/test/moves/scale_shot.test.ts +++ b/src/test/moves/scale_shot.test.ts @@ -36,11 +36,12 @@ describe("Moves - Scale Shot", () => { .enemyAbility(Abilities.SHEER_FORCE) .enemyPassiveAbility(Abilities.STALL) .enemyMoveset(Moves.SKILL_SWAP) - .enemyLevel(5); + .enemyLevel(3); }); it("applies stat changes after last hit", async () => { - await game.classicMode.startBattle([Species.FORRETRESS]); + game.override.enemySpecies(Species.FORRETRESS); + await game.classicMode.startBattle(); const minccino = game.scene.getPlayerPokemon()!; game.move.select(Moves.SCALE_SHOT); await game.phaseInterceptor.to(MoveEffectPhase); @@ -54,7 +55,8 @@ describe("Moves - Scale Shot", () => { }); it("unaffected by sheer force", async () => { - await game.classicMode.startBattle([Species.WOBBUFFET]); + game.override.enemySpecies(Species.WOBBUFFET); + await game.classicMode.startBattle(); const minccino = game.scene.getPlayerPokemon()!; const wobbuffet = game.scene.getEnemyPokemon()!; wobbuffet.setStat(Stat.HP, 100, true);