diff --git a/test/abilities/liquid_ooze.test.ts b/test/abilities/liquid_ooze.test.ts index 538b31a499d..da9f861ad2c 100644 --- a/test/abilities/liquid_ooze.test.ts +++ b/test/abilities/liquid_ooze.test.ts @@ -1,6 +1,6 @@ -import { Abilities } from "#enums/abilities"; -import { Moves } from "#enums/moves"; -import { Species } from "#enums/species"; +import { AbilityId } from "#enums/ability-id"; +import { MoveId } from "#enums/move-id"; +import { SpeciesId } from "#enums/species-id"; import GameManager from "#test/testUtils/gameManager"; import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; @@ -22,40 +22,39 @@ describe("Abilities - Liquid Ooze", () => { beforeEach(() => { game = new GameManager(phaserGame); game.override - .moveset([Moves.SPLASH, Moves.GIGA_DRAIN]) - .ability(Abilities.BALL_FETCH) + .moveset([MoveId.SPLASH, MoveId.GIGA_DRAIN]) + .ability(AbilityId.BALL_FETCH) .battleStyle("single") - .disableCrits() .enemyLevel(20) - .enemySpecies(Species.MAGIKARP) - .enemyAbility(Abilities.LIQUID_OOZE) - .enemyMoveset(Moves.SPLASH); + .enemySpecies(SpeciesId.MAGIKARP) + .enemyAbility(AbilityId.LIQUID_OOZE) + .enemyMoveset(MoveId.SPLASH); }); it("should drain the attacker's HP after a draining move", async () => { - await game.classicMode.startBattle([Species.FEEBAS]); + await game.classicMode.startBattle([SpeciesId.FEEBAS]); - game.move.select(Moves.GIGA_DRAIN); + game.move.select(MoveId.GIGA_DRAIN); await game.phaseInterceptor.to("BerryPhase"); expect(game.scene.getPlayerPokemon()?.isFullHp()).toBe(false); }); it("should not drain the attacker's HP if it ignores indirect damage", async () => { - game.override.ability(Abilities.MAGIC_GUARD); - await game.classicMode.startBattle([Species.FEEBAS]); + game.override.ability(AbilityId.MAGIC_GUARD); + await game.classicMode.startBattle([SpeciesId.FEEBAS]); - game.move.select(Moves.GIGA_DRAIN); + game.move.select(MoveId.GIGA_DRAIN); await game.phaseInterceptor.to("BerryPhase"); expect(game.scene.getPlayerPokemon()?.isFullHp()).toBe(true); }); it("should not apply if suppressed", async () => { - game.override.ability(Abilities.NEUTRALIZING_GAS); - await game.classicMode.startBattle([Species.FEEBAS]); + game.override.ability(AbilityId.NEUTRALIZING_GAS); + await game.classicMode.startBattle([SpeciesId.FEEBAS]); - game.move.select(Moves.GIGA_DRAIN); + game.move.select(MoveId.GIGA_DRAIN); await game.phaseInterceptor.to("BerryPhase"); expect(game.scene.getPlayerPokemon()?.isFullHp()).toBe(true);