mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Update intimidate.test.ts
This commit is contained in:
parent
3b45544ebf
commit
44d0e1d15a
@ -94,25 +94,20 @@ describe("Abilities - Intimidate", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should trigger on moves that switch user/target out during trainer battles", async () => {
|
it("should trigger on moves that switch user/target out during trainer battles", async () => {
|
||||||
game.override
|
game.override.battleType(BattleType.TRAINER).passiveAbility(Abilities.NO_GUARD);
|
||||||
.moveset([Moves.SPLASH, Moves.DRAGON_TAIL])
|
|
||||||
.enemyMoveset([Moves.SPLASH, Moves.TELEPORT])
|
|
||||||
.battleType(BattleType.TRAINER)
|
|
||||||
.startingWave(8)
|
|
||||||
.passiveAbility(Abilities.NO_GUARD);
|
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.MIGHTYENA]);
|
await game.classicMode.startBattle([Species.MIGHTYENA]);
|
||||||
|
|
||||||
const playerPokemon = game.scene.getPlayerPokemon()!;
|
const playerPokemon = game.scene.getPlayerPokemon()!;
|
||||||
expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-1);
|
expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-1);
|
||||||
|
|
||||||
game.move.select(Moves.SPLASH);
|
game.move.use(Moves.SPLASH);
|
||||||
await game.forceEnemyMove(Moves.TELEPORT);
|
await game.move.forceEnemyMove(Moves.TELEPORT);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-2);
|
expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-2);
|
||||||
|
|
||||||
game.move.select(Moves.DRAGON_TAIL);
|
game.move.use(Moves.DRAGON_TAIL);
|
||||||
await game.forceEnemyMove(Moves.SPLASH);
|
await game.move.forceEnemyMove(Moves.SPLASH);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-3);
|
expect(playerPokemon.getStatStage(Stat.ATK)).toBe(-3);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user