mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-12 19:34:47 +01:00
[Test] Remove held items and abilities from test (#3295)
This commit is contained in:
parent
e042dafcec
commit
9655ddc117
@ -8,7 +8,7 @@ import { Moves } from "#enums/moves";
|
|||||||
import { Species } from "#enums/species";
|
import { Species } from "#enums/species";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
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("Moves - Octolock", () => {
|
||||||
describe("integration tests", () => {
|
describe("integration tests", () => {
|
||||||
@ -32,15 +32,16 @@ describe("Moves - Octolock", () => {
|
|||||||
|
|
||||||
game.override.enemySpecies(Species.RATTATA);
|
game.override.enemySpecies(Species.RATTATA);
|
||||||
game.override.enemyMoveset(SPLASH_ONLY);
|
game.override.enemyMoveset(SPLASH_ONLY);
|
||||||
game.override.enemyAbility(Abilities.NONE);
|
game.override.enemyAbility(Abilities.BALL_FETCH);
|
||||||
|
|
||||||
game.override.startingLevel(2000);
|
game.override.startingLevel(2000);
|
||||||
game.override.moveset([Moves.OCTOLOCK, Moves.SPLASH]);
|
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 () => {
|
it("Reduces DEf and SPDEF by 1 each turn", { timeout: 10000 }, async () => {
|
||||||
await game.startBattle([Species.GRAPPLOCT]);
|
await game.startBattle([Species.GRAPPLOCT]);
|
||||||
|
removeEnemyHeldItems(game.scene);
|
||||||
|
|
||||||
const enemyPokemon = game.scene.getEnemyField();
|
const enemyPokemon = game.scene.getEnemyField();
|
||||||
|
|
||||||
@ -62,6 +63,7 @@ describe("Moves - Octolock", () => {
|
|||||||
|
|
||||||
it("Traps the target pokemon", { timeout: 10000 }, async () => {
|
it("Traps the target pokemon", { timeout: 10000 }, async () => {
|
||||||
await game.startBattle([Species.GRAPPLOCT]);
|
await game.startBattle([Species.GRAPPLOCT]);
|
||||||
|
removeEnemyHeldItems(game.scene);
|
||||||
|
|
||||||
const enemyPokemon = game.scene.getEnemyField();
|
const enemyPokemon = game.scene.getEnemyField();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user