Use game.field instead of game.scene in metronome.test.ts

This commit is contained in:
NightKev 2025-06-09 20:45:59 -07:00
parent 8f6356b971
commit 9c99d42aa5

View File

@ -87,7 +87,7 @@ describe("Moves - Metronome", () => {
vi.spyOn(randomMoveAttr, "getMoveOverride").mockReturnValue(MoveId.SOLAR_BEAM);
await game.classicMode.startBattle([SpeciesId.REGIELEKI]);
const player = game.scene.getPlayerPokemon()!;
const player = game.field.getPlayerPokemon();
game.move.changeMoveset(player, [MoveId.METRONOME, MoveId.SOLAR_BEAM]);
const [metronomeMove, solarBeamMove] = player.getMoveset();