Skip to content

Commit

Permalink
add support for exporting minion buffs to party tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle committed Dec 1, 2023
1 parent 2ab9129 commit 619023c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/PartyTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ function PartyTabClass:ParseBuffs(list, buf, buffType, label)
else
if line:find("|") and currentName ~= "SKIP" and not line:find("MinionModifier|LIST") then
if currentModType == "otherEffects" then
currentName, currentEffect, line = line:match("([%w ]-%w+)|(%w+)|(.+)")
currentName, currentEffect, line = line:match("([%w ']-%w+)|(%w+)|(.+)")
end
local mod = modLib.parseFormattedSourceMod(line)
if mod then
Expand Down
6 changes: 6 additions & 0 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,12 @@ function calcs.perform(env, fullDPSSkipEHP)
if activeMinionSkill.skillData.thisIsNotABuff then
buffs[buff.name].notBuff = true
end
if partyTabEnableExportBuffs then
local inc = modStore:Sum("INC", skillCfg, "BuffEffect")
local more = modStore:More(skillCfg, "BuffEffect")
buffExports["Aura"]["otherEffects"] = buffExports["Aura"]["otherEffects"] or { }
buffExports["Aura"]["otherEffects"][buff.name] = { effectMult = (1 + inc / 100) * more, modList = buff.modList }
end
end
local envMinionCheck = (env.minion and (env.minion == castingMinion or buff.applyAllies))
if buff.applyMinions or envMinionCheck then
Expand Down

0 comments on commit 619023c

Please sign in to comment.