Fix unreliable Speed Boost test
This commit is contained in:
parent
be908f8394
commit
daeaf9d3fd
|
@ -28,7 +28,9 @@ describe("Abilities - Speed Boost", () => {
|
||||||
|
|
||||||
game.override
|
game.override
|
||||||
.battleType("single")
|
.battleType("single")
|
||||||
.enemySpecies(Species.DRAGAPULT)
|
.enemySpecies(Species.SHUCKLE)
|
||||||
|
.enemyAbility(Abilities.BALL_FETCH)
|
||||||
|
.enemyLevel(100)
|
||||||
.ability(Abilities.SPEED_BOOST)
|
.ability(Abilities.SPEED_BOOST)
|
||||||
.enemyMoveset(Moves.SPLASH)
|
.enemyMoveset(Moves.SPLASH)
|
||||||
.moveset([ Moves.SPLASH, Moves.U_TURN ]);
|
.moveset([ Moves.SPLASH, Moves.U_TURN ]);
|
||||||
|
@ -70,21 +72,23 @@ describe("Abilities - Speed Boost", () => {
|
||||||
Species.NINJASK
|
Species.NINJASK
|
||||||
]);
|
]);
|
||||||
|
|
||||||
game.move.select(Moves.U_TURN);
|
const [ shuckle, ninjask ] = game.scene.getPlayerParty();
|
||||||
game.doSelectPartyPokemon(1);
|
|
||||||
await game.toNextTurn();
|
|
||||||
let playerPokemon = game.scene.getPlayerPokemon()!;
|
|
||||||
expect(playerPokemon.getStatStage(Stat.SPD)).toBe(0);
|
|
||||||
|
|
||||||
game.move.select(Moves.U_TURN);
|
game.move.select(Moves.U_TURN);
|
||||||
game.doSelectPartyPokemon(1);
|
game.doSelectPartyPokemon(1);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
playerPokemon = game.scene.getPlayerPokemon()!;
|
expect(game.scene.getPlayerPokemon()!).toBe(ninjask);
|
||||||
expect(playerPokemon.getStatStage(Stat.SPD)).toBe(0);
|
expect(ninjask.getStatStage(Stat.SPD)).toBe(0);
|
||||||
|
|
||||||
|
game.move.select(Moves.U_TURN);
|
||||||
|
game.doSelectPartyPokemon(1);
|
||||||
|
await game.toNextTurn();
|
||||||
|
expect(game.scene.getPlayerPokemon()!).toBe(shuckle);
|
||||||
|
expect(shuckle.getStatStage(Stat.SPD)).toBe(0);
|
||||||
|
|
||||||
game.move.select(Moves.SPLASH);
|
game.move.select(Moves.SPLASH);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
expect(playerPokemon.getStatStage(Stat.SPD)).toBe(1);
|
expect(shuckle.getStatStage(Stat.SPD)).toBe(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should not trigger this turn if pokemon was switched into combat via normal switch, but the turn after",
|
it("should not trigger this turn if pokemon was switched into combat via normal switch, but the turn after",
|
||||||
|
|
Loading…
Reference in New Issue