Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1380,8 +1380,8 @@ function calcs.defence(env, actor)
local gainRate = modDB:Sum("BASE", nil, source.name .. "GainAs" .. target.name)
local rate = source.conversionRate[target.name] + gainRate
if rate > 0 then
local targetBase = math.ceil(globalBase * rate / 100)
local targetTotalBase = math.ceil(totalBase * rate / 100)
local targetBase = round(globalBase * rate / 100)
local targetTotalBase = round(totalBase * rate / 100)
target.globalBase = target.globalBase + targetBase
target.totalBase = target.totalBase + targetTotalBase
if breakdown then
Expand Down
Loading