Fix turn order issue in Miracle Eye test (#3912)
This commit is contained in:
parent
8ff566eaca
commit
dd0e820893
|
@ -33,18 +33,18 @@ describe("Moves - Miracle Eye", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should allow Psychic moves to hit Dark types", async () => {
|
it("should allow Psychic moves to hit Dark types", async () => {
|
||||||
await game.startBattle();
|
await game.classicMode.startBattle();
|
||||||
|
|
||||||
const enemy = game.scene.getEnemyPokemon()!;
|
const enemy = game.scene.getEnemyPokemon()!;
|
||||||
|
|
||||||
game.move.select(Moves.CONFUSION);
|
game.move.select(Moves.CONFUSION);
|
||||||
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
|
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
expect(enemy.hp).toBe(enemy.getMaxHp());
|
expect(enemy.hp).toBe(enemy.getMaxHp());
|
||||||
|
|
||||||
game.move.select(Moves.MIRACLE_EYE);
|
game.move.select(Moves.MIRACLE_EYE);
|
||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
game.move.select(Moves.CONFUSION);
|
game.move.select(Moves.CONFUSION);
|
||||||
|
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
|
||||||
await game.phaseInterceptor.to(MoveEffectPhase);
|
await game.phaseInterceptor.to(MoveEffectPhase);
|
||||||
|
|
||||||
expect(enemy.hp).toBeLessThan(enemy.getMaxHp());
|
expect(enemy.hp).toBeLessThan(enemy.getMaxHp());
|
||||||
|
|
Loading…
Reference in New Issue