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
10 changes: 9 additions & 1 deletion src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,11 @@ function calcs.perform(env, skipEHP)


local function mergeTinctures(tinctures)
local tincturesNotInflictManaBurn = m_min(modDB:Sum("BASE", nil, "TincturesNotInflictManaBurn"), 100)
local canGainRequiredBurn = modDB:Flag(nil, "Condition:WeepingWoundsInsteadOfManaBurn") or (tincturesNotInflictManaBurn < 100 and (output.ManaUnreserved or 0) > 0)
if not canGainRequiredBurn then
return
end
local tinctureBuffs = { }
local tinctureConditions = {}
local tinctureBuffsPerBase = {}
Expand Down Expand Up @@ -1773,7 +1778,6 @@ function calcs.perform(env, skipEHP)
-- This needs to be done in 2 steps to account for effects affecting life recovery from flasks
-- For example Sorrow of the Divine and buffs (like flask recovery watchers eye)
mergeFlasks(env.flasks, false, true)
mergeTinctures(env.tinctures)

-- Merge keystones again to catch any that were added by flasks
modLib.mergeKeystones(env, env.modDB)
Expand Down Expand Up @@ -1921,6 +1925,10 @@ function calcs.perform(env, skipEHP)
-- Set the life/mana reservations (hold off on GrantReserved"..pool.."AsAura)
doActorLifeManaReservation(env.player, not modDB:Flag(nil, "ManaIncreasedByOvercappedLightningRes"))

if env.mode_combat then
mergeTinctures(env.tinctures)
end

-- Process attribute requirements
do
local reqMult = calcLib.mod(modDB, nil, "GlobalAttributeRequirements")
Expand Down
Loading