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
8 changes: 6 additions & 2 deletions src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,11 @@ function calcs.defence(env, actor)

local condList = modDB.conditions

-- Pre-calculate Life/Mana/Spirit and reservations to set conditions (like LowLife) before defences are calculated
-- This ensures modifiers that depend on conditions (e.g., "when on Low Life") work correctly
calcs.doActorLifeManaSpirit(actor, true)
calcs.doActorLifeManaSpiritReservation(actor)

-- Action Speed
output.ActionSpeedMod = calcs.actionSpeedMod(actor)

Expand Down Expand Up @@ -1111,8 +1116,7 @@ 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)
-- Life/Mana/Spirit already calculated above for conditions
local ward = 0
local energyShield = 0
local armour = 0
Expand Down