Skip to content

Commit

Permalink
FIX: formless inferno not increasing miniion life.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Mar 2, 2024
1 parent 103646b commit 0b028c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ function calcs.defence(env, actor)
end
end

if actor == env.minion then
doActorLifeMana(env.minion)
doActorLifeManaReservation(env.minion)
end

-- Block
output.BlockChanceMax = modDB:Sum("BASE", nil, "BlockChanceMax")
if modDB:Flag(nil, "MaximumBlockAttackChanceIsEqualToParent") then
Expand Down
7 changes: 2 additions & 5 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ local function mergeKeystones(env)
end
end

local function doActorLifeMana(actor)
function doActorLifeMana(actor)
local modDB = actor.modDB
local output = actor.output
local breakdown = actor.breakdown
Expand Down Expand Up @@ -437,7 +437,7 @@ end

-- Calculate life/mana reservation
---@param actor table
local function doActorLifeManaReservation(actor)
function doActorLifeManaReservation(actor)
local modDB = actor.modDB
local output = actor.output
local condList = modDB.conditions
Expand Down Expand Up @@ -3015,9 +3015,6 @@ function calcs.perform(env, fullDPSSkipEHP)
end

if env.minion then
doActorLifeMana(env.minion)
doActorLifeManaReservation(env.minion)

calcs.defence(env, env.minion)
if not fullDPSSkipEHP then -- main.build.calcsTab.input.showMinion and -- should be disabled unless "calcsTab.input.showMinion" is true
calcs.buildDefenceEstimations(env, env.minion)
Expand Down

0 comments on commit 0b028c9

Please sign in to comment.