Skip to content
Merged
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
6 changes: 4 additions & 2 deletions src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ end

-- Calculate life/mana/spirit pools
---@param actor table
function calcs.doActorLifeManaSpirit(actor)
function calcs.doActorLifeManaSpirit(actor, skipBreakdown)
local modDB = actor.modDB
local output = actor.output
local breakdown = actor.breakdown
local breakdown = (not skipBreakdown) and actor.breakdown
local condList = modDB.conditions

local lowLifePerc = modDB:Sum("BASE", nil, "LowLifePercentage")
Expand Down Expand Up @@ -1065,6 +1065,8 @@ function calcs.defence(env, actor)
end
-- Primary defences: Energy shield, evasion and armour
do
-- Pre-calculate Life/Mana/Spirit for mods such as Beidat's hand
calcs.doActorLifeManaSpirit(actor, true)
local ward = 0
local energyShield = 0
local armour = 0
Expand Down