Skip to content

Commit

Permalink
Fix test RNG
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jun 30, 2024
1 parent cd25fd9 commit 88f3361
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/moves/glaive_rush.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe("Moves - Tackle", () => {
const enemy = game.scene.getEnemyPokemon();
enemy.hp = 1000;

vi.spyOn(game.scene, "randBattleSeedInt").mockReturnValue(0);
game.doAttack(getMovePosition(game.scene, 0, Moves.SHADOW_SNEAK));
await game.phaseInterceptor.to(DamagePhase);
const damageDealt = 1000 - enemy.hp;
Expand Down

0 comments on commit 88f3361

Please sign in to comment.