mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-07 07:59:26 +02:00
[Test] Fix Intimidate test
This commit is contained in:
parent
362dd9e2b9
commit
6863044698
@ -1,5 +1,4 @@
|
||||
import { AbilityId } from "#enums/ability-id";
|
||||
import { BattleType } from "#enums/battle-type";
|
||||
import { MoveId } from "#enums/move-id";
|
||||
import { SpeciesId } from "#enums/species-id";
|
||||
import { Stat } from "#enums/stat";
|
||||
@ -24,6 +23,7 @@ describe("Abilities - Intimidate", () => {
|
||||
beforeEach(() => {
|
||||
game = new GameManager(phaserGame);
|
||||
game.override
|
||||
.criticalHits(false)
|
||||
.battleStyle("single")
|
||||
.enemySpecies(SpeciesId.RATTATA)
|
||||
.enemyAbility(AbilityId.INTIMIDATE)
|
||||
@ -55,8 +55,8 @@ describe("Abilities - Intimidate", () => {
|
||||
});
|
||||
|
||||
it("should not trigger on switching moves used by wild Pokemon", async () => {
|
||||
game.override.enemyMoveset(MoveId.VOLT_SWITCH).battleType(BattleType.WILD);
|
||||
await game.classicMode.startBattle([SpeciesId.MIGHTYENA]);
|
||||
game.override.enemyMoveset(MoveId.VOLT_SWITCH);
|
||||
await game.classicMode.startBattle([SpeciesId.VENUSAUR]);
|
||||
|
||||
const player = game.field.getPlayerPokemon();
|
||||
expect(player.getStatStage(Stat.ATK)).toBe(-1);
|
||||
@ -69,7 +69,7 @@ describe("Abilities - Intimidate", () => {
|
||||
});
|
||||
|
||||
it("should trigger on moves that switch user/target out during trainer battles", async () => {
|
||||
game.override.battleType(BattleType.TRAINER).startingWave(50);
|
||||
game.override.startingWave(5).enemyLevel(100);
|
||||
await game.classicMode.startBattle([SpeciesId.MIGHTYENA]);
|
||||
|
||||
const player = game.field.getPlayerPokemon();
|
||||
|
Loading…
Reference in New Issue
Block a user