Skip to content

Commit

Permalink
fix master surgion (#6818)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored Dec 1, 2023
1 parent 19cd89b commit 9c91390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ function calcs.perform(env, fullDPSSkipEHP)
local flaskBuffsNonPlayer = {}
local flaskBuffsPerBaseNonPlayer = {}

local function calcFlaskMods(item, baseName, buffModList, modList)
local function calcFlaskMods(item, baseName, buffModList, modList, onlyMinion)
local flaskEffectInc = effectInc + item.flaskData.effectInc
local flaskEffectIncNonPlayer = effectIncNonPlayer + item.flaskData.effectInc
if item.rarity == "MAGIC" and not (item.base.flask.life or item.base.flask.mana) then
Expand All @@ -1334,7 +1334,7 @@ function calcs.perform(env, fullDPSSkipEHP)
-- I have no idea how to determine which buff is applied by a given flask,
-- so utility flasks are grouped by base, unique flasks are grouped by name, and magic flasks by their modifiers
if buffModList[1] then
if not onlyRecovery then
if not onlyMinion then
local srcList = new("ModList")
srcList:ScaleAddList(buffModList, effectMod)
mergeBuff(srcList, flaskBuffs, baseName)
Expand Down Expand Up @@ -1393,7 +1393,7 @@ function calcs.perform(env, fullDPSSkipEHP)
calcFlaskMods(item, "ManaFlask", calcFlaskRecovery("Mana", item), {})
end
if checkNonRecoveryFlasksForMinions then
calcFlaskMods(item, item.baseName, item.buffModList, item.modList)
calcFlaskMods(item, item.baseName, item.buffModList, item.modList, true)
end
else
calcFlaskMods(item, item.baseName, item.buffModList, item.modList)
Expand Down

0 comments on commit 9c91390

Please sign in to comment.