Skip to content

Commit 592a42c

Browse files
author
LocalIdentity
committed
Fix ES bypass tests
1 parent d469ca7 commit 592a42c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/System/TestDefence_spec.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe("TestDefence", function()
102102
assert.are.equals(3000, build.calcsTab.calcsOutput.ColdMaximumHitTaken)
103103
assert.are.equals(3000, build.calcsTab.calcsOutput.LightningMaximumHitTaken)
104104
assert.are.equals(3000, build.calcsTab.calcsOutput.ChaosMaximumHitTaken)
105-
local poolsRemaining = poolsRemainingAfterTypeMaxHit("Lightning")
105+
local poolsRemaining = poolsRemainingAfterTypeMaxHit("Lightning", 0.8)
106106
assert.are.equals(0, floor(poolsRemaining.Life))
107107
assert.are.equals(0, floor(poolsRemaining.OverkillDamage))
108108

@@ -414,15 +414,15 @@ describe("TestDefence", function()
414414
poolsRemaining = poolsRemainingAfterTypeMaxHit("Fire")
415415
assert.are.equals(0, floor(poolsRemaining.EnergyShield))
416416
assert.are.equals(1000, floor(poolsRemaining.Mana))
417-
assert.are.equals(0, floor(poolsRemaining.Life))
417+
assert.are.not_false(1 >= floor(poolsRemaining.Life))
418418
assert.are.equals(0, floor(poolsRemaining.OverkillDamage))
419419
end)
420420

421421
it("energy shield bypass tests #pet", function()
422422
build.configTab.input.enemyIsBoss = "None"
423423
build.configTab.input.customMods = [[
424424
+40 to maximum life
425-
+200 to energy shield
425+
+300 to energy shield
426426
50% of damage taken bypasses energy shield
427427
You have no intelligence
428428
+60% to all resistances

0 commit comments

Comments
 (0)