From f6a97cacd27442fcad202b5ba499611236b766c4 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 30 Jun 2024 17:36:26 -0700 Subject: [PATCH] Fix off-by-one error in test caused by rounding issues --- src/test/moves/glaive_rush.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/moves/glaive_rush.test.ts b/src/test/moves/glaive_rush.test.ts index f2c306f97150..8e26f6a2c612 100644 --- a/src/test/moves/glaive_rush.test.ts +++ b/src/test/moves/glaive_rush.test.ts @@ -49,7 +49,7 @@ describe("Moves - Glaive Rush", () => { await game.phaseInterceptor.to(TurnEndPhase); game.doAttack(getMovePosition(game.scene, 0, Moves.SHADOW_SNEAK)); await game.phaseInterceptor.to(DamagePhase); - expect(enemy.hp).toBeLessThanOrEqual(1000 - (damageDealt * 3)); + expect(enemy.hp).toBeLessThanOrEqual(999 - (damageDealt * 3)); }, 20000);