Ran Biome

This commit is contained in:
Bertie690 2025-08-27 22:33:13 -04:00
parent cc1e12caee
commit e23157de6b
2 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,7 @@ describe("Moves - Mirror Move", () => {
.battleStyle("single")
.criticalHits(false)
.enemySpecies(SpeciesId.MAGIKARP)
.enemyAbility(AbilityId.BALL_FETCH)
.enemyAbility(AbilityId.BALL_FETCH);
});
it("should use the last move that the target used against it", async () => {
@ -79,6 +79,6 @@ describe("Moves - Mirror Move", () => {
await game.setTurnOrder([BattlerIndex.PLAYER, BattlerIndex.ENEMY]);
await game.toEndOfTurn();
expect(game.field.getPlayerPokemon()).toHaveUsedMove({move: MoveId.MIRROR_MOVE, result: MoveResult.FAIL});
expect(game.field.getPlayerPokemon()).toHaveUsedMove({ move: MoveId.MIRROR_MOVE, result: MoveResult.FAIL });
});
});

View File

@ -345,7 +345,9 @@ export class MoveHelper extends GameManagerHelper {
*/
public forceMetronomeMove(move: MoveId, once = false): MockInstance {
const spy = vi.spyOn(
allMoves[MoveId.METRONOME].getAttrs("RandomMoveAttr")[0] as RandomMoveAttr & { getMove: RandomMoveAttr["getMove"] },
allMoves[MoveId.METRONOME].getAttrs("RandomMoveAttr")[0] as RandomMoveAttr & {
getMove: RandomMoveAttr["getMove"];
},
"getMove",
);
if (once) {