Skip to content

Commit 379822e

Browse files
committed
Fix missing net value in display
1 parent 7635247 commit 379822e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Modules/CalcDefence.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,11 +3124,10 @@ function calcs.buildDefenceEstimations(env, actor)
31243124
end
31253125

31263126
-- If there is life recoup and preventedLifeLoss (Grasping Wounds), add per second sum in Calcs breakdown
3127+
output["netLifeRecoupAndLossLostOverTimeMax"] = (output["LifeRecoupRecoveryMax"] or 0) - (output["LifeLossLostMax"] or 0)
3128+
output["netLifeRecoupAndLossLostOverTimeAvg"] = (output["LifeRecoupRecoveryAvg"] or 0) - (output["LifeLossLostAvg"] or 0)
31273129
if (output["LifeRecoupRecoveryAvg"] or 0) > 0 and output.preventedLifeLossTotal > 0 then
31283130
output["showNetRecoup"] = true
3129-
3130-
output["netLifeRecoupAndLossLostOverTimeMax"] = (output["LifeRecoupRecoveryMax"] or 0) - (output["LifeLossLostMax"] or 0)
3131-
output["netLifeRecoupAndLossLostOverTimeAvg"] = (output["LifeRecoupRecoveryAvg"] or 0) - (output["LifeLossLostAvg"] or 0)
31323131
if breakdown then
31333132
breakdown["netLifeRecoupAndLossLostOverTimeMax"] = {
31343133
s_format("%.2f ^8(total life recouped per second)", output["LifeRecoupRecoveryMax"]),

0 commit comments

Comments
 (0)