Fixed protect test

Fixed test passing regardless of intended result
This commit is contained in:
Bertie690 2024-11-16 13:30:42 -05:00 committed by GitHub
parent 1d32137696
commit 3657b3e208
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,17 +195,16 @@ describe("Moves - Instruct", () => {
});
it("should not repeat enemy's move through protect", async () => {
game.override.enemyMoveset([ Moves.SONIC_BOOM, Moves.PROTECT ]);
await game.classicMode.startBattle([ Species.AMOONGUSS ]);
const enemyPokemon = game.scene.getEnemyPokemon()!;
enemyPokemon.battleSummonData.moveHistory = [{ move: Moves.SONIC_BOOM, targets: [ BattlerIndex.PLAYER ], result: MoveResult.SUCCESS, virtual: false }];
game.move.changeMoveset(enemyPokemon, Moves.PROTECT);
game.move.select(Moves.INSTRUCT);
await game.forceEnemyMove(Moves.PROTECT);
await game.phaseInterceptor.to("TurnEndPhase", false);
expect(enemyPokemon.getLastXMoves()[0].move).toBe(Moves.PROTECT);
expect(enemyPokemon.getMoveset().find(m => m?.moveId === Moves.PROTECT)?.ppUsed).toBe(1);
});
it("should not repeat enemy's charging move", async () => {