Fix Scale Shot flaky test

This commit is contained in:
AJ Fontaine 2024-10-03 15:04:19 -04:00
parent af51c1f2f0
commit 237b3e28fc

View File

@ -36,11 +36,12 @@ describe("Moves - Scale Shot", () => {
.enemyAbility(Abilities.SHEER_FORCE) .enemyAbility(Abilities.SHEER_FORCE)
.enemyPassiveAbility(Abilities.STALL) .enemyPassiveAbility(Abilities.STALL)
.enemyMoveset(Moves.SKILL_SWAP) .enemyMoveset(Moves.SKILL_SWAP)
.enemyLevel(5); .enemyLevel(3);
}); });
it("applies stat changes after last hit", async () => { 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()!; const minccino = game.scene.getPlayerPokemon()!;
game.move.select(Moves.SCALE_SHOT); game.move.select(Moves.SCALE_SHOT);
await game.phaseInterceptor.to(MoveEffectPhase); await game.phaseInterceptor.to(MoveEffectPhase);
@ -54,7 +55,8 @@ describe("Moves - Scale Shot", () => {
}); });
it("unaffected by sheer force", async () => { 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 minccino = game.scene.getPlayerPokemon()!;
const wobbuffet = game.scene.getEnemyPokemon()!; const wobbuffet = game.scene.getEnemyPokemon()!;
wobbuffet.setStat(Stat.HP, 100, true); wobbuffet.setStat(Stat.HP, 100, true);