mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
lighting things with my mind on fire
This commit is contained in:
parent
ba0ae7c51b
commit
301852714e
@ -7,6 +7,7 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
|||||||
import { BattlerTagType } from "#enums/battler-tag-type";
|
import { BattlerTagType } from "#enums/battler-tag-type";
|
||||||
import { ArenaTagType } from "#enums/arena-tag-type";
|
import { ArenaTagType } from "#enums/arena-tag-type";
|
||||||
import { BattlerIndex } from "#app/battle";
|
import { BattlerIndex } from "#app/battle";
|
||||||
|
import { PlayerPokemon } from "#app/field/pokemon";
|
||||||
|
|
||||||
describe("Moves - Aroma Veil", () => {
|
describe("Moves - Aroma Veil", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
@ -35,21 +36,21 @@ describe("Moves - Aroma Veil", () => {
|
|||||||
it("Aroma Veil protects the Pokemon's side against most Move Restriction Battler Tags", async () => {
|
it("Aroma Veil protects the Pokemon's side against most Move Restriction Battler Tags", async () => {
|
||||||
await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]);
|
await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]);
|
||||||
|
|
||||||
const party = game.scene.getParty()!;
|
const party = game.scene.getParty()! as PlayerPokemon[];
|
||||||
|
|
||||||
game.move.select(Moves.GROWL);
|
game.move.select(Moves.GROWL);
|
||||||
game.move.select(Moves.GROWL);
|
game.move.select(Moves.GROWL);
|
||||||
await game.forceEnemyMove(Moves.HEAL_BLOCK);
|
await game.forceEnemyMove(Moves.HEAL_BLOCK);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
for (const pokemon in party) {
|
party.forEach(p => {
|
||||||
expect(pokemon.getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined();
|
expect(p.getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined();
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Aroma Veil does not protect against Imprison", async () => {
|
it("Aroma Veil does not protect against Imprison", async () => {
|
||||||
await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]);
|
await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]);
|
||||||
|
|
||||||
const party = game.scene.getParty()!;
|
const party = game.scene.getParty()! as PlayerPokemon[];
|
||||||
|
|
||||||
game.move.select(Moves.GROWL);
|
game.move.select(Moves.GROWL);
|
||||||
game.move.select(Moves.GROWL, 1);
|
game.move.select(Moves.GROWL, 1);
|
||||||
@ -57,8 +58,8 @@ describe("Moves - Aroma Veil", () => {
|
|||||||
await game.forceEnemyMove(Moves.SPLASH);
|
await game.forceEnemyMove(Moves.SPLASH);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
expect(game.scene.arena.getTag(ArenaTagType.IMPRISON)).toBeDefined();
|
expect(game.scene.arena.getTag(ArenaTagType.IMPRISON)).toBeDefined();
|
||||||
for (const pokemon in party) {
|
party.forEach(p => {
|
||||||
expect(pokemon.getTag(BattlerTagType.IMPRISON)).toBeDefined();
|
expect(p.getTag(BattlerTagType.IMPRISON)).toBeDefined();
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user