Adjust copycat test to account for how it actually works

This commit is contained in:
Sirz Benjie 2025-08-19 14:24:14 -05:00
parent 86122f6c04
commit 48b0d843d2
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -35,7 +35,7 @@ describe("Moves - Copycat", () => {
.enemyMoveset(MoveId.SPLASH);
});
it("should copy the last move successfully executed", async () => {
it("should copy the last move executed across turns", async () => {
game.override.enemyMoveset(MoveId.SUCKER_PUNCH);
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
@ -43,6 +43,7 @@ describe("Moves - Copycat", () => {
await game.toNextTurn();
game.move.select(MoveId.COPYCAT); // Last successful move should be Swords Dance
await game.move.forceEnemyMove(MoveId.SPLASH);
await game.toNextTurn();
expect(game.field.getPlayerPokemon().getStatStage(Stat.ATK)).toBe(4);