mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
Ran Biome
This commit is contained in:
parent
cc1e12caee
commit
e23157de6b
@ -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 });
|
||||
});
|
||||
});
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user