Skip to content

Commit 5c4489b

Browse files
authored
Fix rounding issue for min/max damage (#1200)
1 parent ba5b175 commit 5c4489b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modules/CalcOffence.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,8 +3409,8 @@ function calcs.offence(env, actor, activeSkill)
34093409
local baseMax = output[damageTypeMax.."Base"]
34103410
local summedMin = baseMin * convMult + convertedMin + gainedMin
34113411
local summedMax = baseMax * convMult + convertedMax + gainedMax
3412-
output[damageType.."SummedMinBase"] = m_floor(summedMin)
3413-
output[damageType.."SummedMaxBase"] = m_floor(summedMax)
3412+
output[damageType.."SummedMinBase"] = round(summedMin)
3413+
output[damageType.."SummedMaxBase"] = round(summedMax)
34143414
if breakdown then
34153415
if (baseMin ~= 0 or baseMax ~= 0) then
34163416
if convMult ~= 1 then

0 commit comments

Comments
 (0)