Skip to content

Commit 93f023b

Browse files
authored
Fix Life Conversion with CI (#2354)
1 parent f86b54c commit 93f023b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Modules/CalcDefence.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,8 +1380,8 @@ function calcs.defence(env, actor)
13801380
local gainRate = modDB:Sum("BASE", nil, source.name .. "GainAs" .. target.name)
13811381
local rate = source.conversionRate[target.name] + gainRate
13821382
if rate > 0 then
1383-
local targetBase = math.ceil(globalBase * rate / 100)
1384-
local targetTotalBase = math.ceil(totalBase * rate / 100)
1383+
local targetBase = round(globalBase * rate / 100)
1384+
local targetTotalBase = round(totalBase * rate / 100)
13851385
target.globalBase = target.globalBase + targetBase
13861386
target.totalBase = target.totalBase + targetTotalBase
13871387
if breakdown then

0 commit comments

Comments
 (0)