@@ -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