[Test] Remove held items and abilities from test (#3295)

This commit is contained in:
NightKev 2024-08-01 21:50:09 -07:00 committed by GitHub
parent e042dafcec
commit 9655ddc117
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import { Moves } from "#enums/moves";
import { Species } from "#enums/species";
import Phaser from "phaser";
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
import { SPLASH_ONLY } from "../utils/testUtils";
import { removeEnemyHeldItems, SPLASH_ONLY } from "../utils/testUtils";
describe("Moves - Octolock", () => {
describe("integration tests", () => {
@ -32,15 +32,16 @@ describe("Moves - Octolock", () => {
game.override.enemySpecies(Species.RATTATA);
game.override.enemyMoveset(SPLASH_ONLY);
game.override.enemyAbility(Abilities.NONE);
game.override.enemyAbility(Abilities.BALL_FETCH);
game.override.startingLevel(2000);
game.override.moveset([Moves.OCTOLOCK, Moves.SPLASH]);
game.override.ability(Abilities.NONE);
game.override.ability(Abilities.BALL_FETCH);
});
it("Reduces DEf and SPDEF by 1 each turn", { timeout: 10000 }, async () => {
await game.startBattle([Species.GRAPPLOCT]);
removeEnemyHeldItems(game.scene);
const enemyPokemon = game.scene.getEnemyField();
@ -62,6 +63,7 @@ describe("Moves - Octolock", () => {
it("Traps the target pokemon", { timeout: 10000 }, async () => {
await game.startBattle([Species.GRAPPLOCT]);
removeEnemyHeldItems(game.scene);
const enemyPokemon = game.scene.getEnemyField();