Update intimidate.test.ts

This commit is contained in:
Bertie690 2025-06-03 07:54:24 -04:00 committed by GitHub
parent 3b45544ebf
commit 44d0e1d15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}); });