mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
Fix magic bounce accuracy check test
This commit is contained in:
parent
ee4a2168d2
commit
79fefa9f67
@ -205,15 +205,15 @@ describe("Abilities - Magic Bounce", () => {
|
||||
});
|
||||
|
||||
it("should bounce back a move before the accuracy check", async () => {
|
||||
game.override.moveset([ Moves.SPLASH ]);
|
||||
game.override.moveset([ Moves.SPORE ]);
|
||||
await game.classicMode.startBattle([ Species.MAGIKARP ]);
|
||||
|
||||
const attacker = game.scene.getPlayerPokemon()!;
|
||||
|
||||
vi.spyOn(attacker, "getAccuracyMultiplier").mockReturnValue(0.0);
|
||||
game.move.select(Moves.SPLASH);
|
||||
game.move.select(Moves.SPORE);
|
||||
await game.phaseInterceptor.to("BerryPhase");
|
||||
expect(game.scene.getPlayerPokemon()!.getStatStage(Stat.ATK)).toBe(-1);
|
||||
expect(game.scene.getPlayerPokemon()!.status).toBeUndefined();
|
||||
});
|
||||
|
||||
it("should take the accuracy of the magic bounce user into account", async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user