Fixed tests

This commit is contained in:
Bertie690 2025-06-16 18:39:09 -04:00
parent 599a2487bf
commit 11fa4354fa
3 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ describe("Abilities - Lightningrod", () => {
enemy2.summonData.ability = AbilityId.LIGHTNING_ROD;
game.move.select(MoveId.SHOCK_WAVE, BattlerIndex.PLAYER, BattlerIndex.ENEMY);
game.move.select(MoveId.SPLASH, BattlerIndex.PLAYER_2);
game.move.use(MoveId.SPLASH, BattlerIndex.PLAYER_2);
await game.phaseInterceptor.to("BerryPhase");
expect(enemy1.isFullHp()).toBe(false);

View File

@ -86,7 +86,7 @@ describe("Weather - Strong Winds", () => {
const enemy = game.scene.getEnemyPokemon()!;
enemy.hp = 1;
game.move.select(MoveId.SPLASH);
game.move.use(MoveId.SPLASH);
await game.phaseInterceptor.to("TurnEndPhase");
expect(game.scene.arena.weather?.weatherType).toBeUndefined();

View File

@ -33,7 +33,7 @@ describe("Moves - Baddy Bad", () => {
game.override.enemyMoveset(MoveId.PROTECT);
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
game.move.select(MoveId.BADDY_BAD);
game.move.use(MoveId.BADDY_BAD);
await game.phaseInterceptor.to("BerryPhase");
expect(game.scene.arena.tags.length).toBe(0);