mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
[Test] Make sure items are removed from enemies in Last Respects test
This commit is contained in:
parent
fd1404706a
commit
7cf51d48a7
@ -164,15 +164,13 @@ describe("Moves - Last Respects", () => {
|
|||||||
await game.toNextWave();
|
await game.toNextWave();
|
||||||
expect(game.scene.currentBattle.enemyFaints).toBe(0);
|
expect(game.scene.currentBattle.enemyFaints).toBe(0);
|
||||||
|
|
||||||
|
game.removeEnemyHeldItems();
|
||||||
|
|
||||||
game.move.select(MoveId.LAST_RESPECTS);
|
game.move.select(MoveId.LAST_RESPECTS);
|
||||||
await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]);
|
await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]);
|
||||||
await game.phaseInterceptor.to("MoveEndPhase");
|
await game.phaseInterceptor.to("MoveEndPhase");
|
||||||
|
|
||||||
const enemy = game.field.getEnemyPokemon();
|
expect(move.calculateBattlePower).toHaveLastReturnedWith(50);
|
||||||
const player = game.field.getPlayerPokemon();
|
|
||||||
const items = `Player items: ${player.getHeldItems()} | Enemy Items: ${enemy.getHeldItems()} |`;
|
|
||||||
|
|
||||||
expect(move.calculateBattlePower, items).toHaveLastReturnedWith(50);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should reset playerFaints count if we enter new trainer battle", async () => {
|
it("should reset playerFaints count if we enter new trainer battle", async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user