fix failing belly drum test (#3768)

This commit is contained in:
Adrian T. 2024-08-27 00:14:59 +08:00 committed by GitHub
parent bbbb6d6f79
commit 2d0a4326b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,8 @@ import { Species } from "#enums/species";
import GameManager from "#test/utils/gameManager"; import GameManager from "#test/utils/gameManager";
import Phaser from "phaser"; import Phaser from "phaser";
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest"; import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
import { SPLASH_ONLY } from "../utils/testUtils";
import { Abilities } from "#app/enums/abilities";
const TIMEOUT = 20 * 1000; const TIMEOUT = 20 * 1000;
// RATIO : HP Cost of Move // RATIO : HP Cost of Move
@ -29,12 +31,14 @@ describe("Moves - BELLY DRUM", () => {
beforeEach(() => { beforeEach(() => {
game = new GameManager(phaserGame); game = new GameManager(phaserGame);
game.override.starterSpecies(Species.MAGIKARP); game.override
game.override.enemySpecies(Species.SNORLAX); .starterSpecies(Species.MAGIKARP)
game.override.startingLevel(100); .enemySpecies(Species.SNORLAX)
game.override.enemyLevel(100); .startingLevel(100)
game.override.moveset([Moves.BELLY_DRUM]); .enemyLevel(100)
game.override.enemyMoveset([Moves.SPLASH]); .moveset([Moves.BELLY_DRUM])
.enemyMoveset(SPLASH_ONLY)
.enemyAbility(Abilities.BALL_FETCH);
}); });
// Bulbapedia Reference: https://bulbapedia.bulbagarden.net/wiki/Belly_Drum_(move) // Bulbapedia Reference: https://bulbapedia.bulbagarden.net/wiki/Belly_Drum_(move)