@@ -102,7 +102,7 @@ describe("TestDefence", function()
102
102
assert .are .equals (3000 , build .calcsTab .calcsOutput .ColdMaximumHitTaken )
103
103
assert .are .equals (3000 , build .calcsTab .calcsOutput .LightningMaximumHitTaken )
104
104
assert .are .equals (3000 , build .calcsTab .calcsOutput .ChaosMaximumHitTaken )
105
- local poolsRemaining = poolsRemainingAfterTypeMaxHit (" Lightning" )
105
+ local poolsRemaining = poolsRemainingAfterTypeMaxHit (" Lightning" , 0.8 )
106
106
assert .are .equals (0 , floor (poolsRemaining .Life ))
107
107
assert .are .equals (0 , floor (poolsRemaining .OverkillDamage ))
108
108
@@ -414,15 +414,15 @@ describe("TestDefence", function()
414
414
poolsRemaining = poolsRemainingAfterTypeMaxHit (" Fire" )
415
415
assert .are .equals (0 , floor (poolsRemaining .EnergyShield ))
416
416
assert .are .equals (1000 , floor (poolsRemaining .Mana ))
417
- assert .are .equals ( 0 , floor (poolsRemaining .Life ))
417
+ assert .are .not_false ( 1 >= floor (poolsRemaining .Life ))
418
418
assert .are .equals (0 , floor (poolsRemaining .OverkillDamage ))
419
419
end )
420
420
421
421
it (" energy shield bypass tests #pet" , function ()
422
422
build .configTab .input .enemyIsBoss = " None"
423
423
build .configTab .input .customMods = [[
424
424
+40 to maximum life
425
- +200 to energy shield
425
+ +300 to energy shield
426
426
50% of damage taken bypasses energy shield
427
427
You have no intelligence
428
428
+60% to all resistances
0 commit comments