mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-17 12:59:25 +02:00
Added wip spite test
This commit is contained in:
parent
ccc8890362
commit
39230e1864
@ -1,12 +1,12 @@
|
|||||||
import { AbilityId } from "#enums/ability-id";
|
import { AbilityId } from "#enums/ability-id";
|
||||||
|
import { BattlerIndex } from "#enums/battler-index";
|
||||||
import { MoveId } from "#enums/move-id";
|
import { MoveId } from "#enums/move-id";
|
||||||
import { PokemonType } from "#enums/pokemon-type";
|
|
||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import { GameManager } from "#test/test-utils/game-manager";
|
import { GameManager } from "#test/test-utils/game-manager";
|
||||||
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";
|
||||||
|
|
||||||
describe("Utils - Fff", () => {
|
describe("Moves - Spite", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
let game: GameManager;
|
let game: GameManager;
|
||||||
|
|
||||||
@ -33,11 +33,15 @@ describe("Utils - Fff", () => {
|
|||||||
.enemyLevel(100);
|
.enemyLevel(100);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should do XYZ", async () => {
|
it("should reduce the PP of the target's last move by 4", async () => {
|
||||||
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
|
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
|
||||||
|
|
||||||
expect(game.field.getPlayerPokemon()).toHaveTypes([PokemonType.WATER]);
|
game.move.use(MoveId.SPITE);
|
||||||
expect.soft(game.field.getPlayerPokemon()).toHaveTypes([PokemonType.FLYING]);
|
await game.move.forceEnemyMove(MoveId.TACKLE);
|
||||||
expect.soft(game.field.getPlayerPokemon()).toHaveTypes([PokemonType.WATER]);
|
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
|
||||||
|
await game.toEndOfTurn();
|
||||||
|
|
||||||
|
const karp = game.field.getEnemyPokemon();
|
||||||
|
expect(karp.getMoveset()).toBe(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user