mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 22:39:31 +02:00
Fix test
This commit is contained in:
parent
2ba66b9057
commit
babe3244f8
@ -54,14 +54,14 @@ describe("Frenzy Move Reset", () => {
|
|||||||
const playerPokemon = game.scene.getPlayerPokemon()!;
|
const playerPokemon = game.scene.getPlayerPokemon()!;
|
||||||
|
|
||||||
game.move.select(Moves.THRASH);
|
game.move.select(Moves.THRASH);
|
||||||
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY ]);
|
||||||
await game.move.forceStatusActivation(false);
|
await game.move.forceStatusActivation(false);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
|
|
||||||
expect(playerPokemon.summonData.moveQueue.length).toBe(2);
|
expect(playerPokemon.summonData.moveQueue.length).toBe(2);
|
||||||
expect(playerPokemon.summonData.tags.some(tag => tag.tagType === BattlerTagType.FRENZY)).toBe(true);
|
expect(playerPokemon.summonData.tags.some(tag => tag.tagType === BattlerTagType.FRENZY)).toBe(true);
|
||||||
|
|
||||||
await game.toNextTurn();
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY ]);
|
||||||
|
|
||||||
await game.move.forceStatusActivation(true);
|
await game.move.forceStatusActivation(true);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user