Skip to content

Commit dc3b6e5

Browse files
committed
add support for extraWarcryMods (like rallying cry)
1 parent dc8244c commit dc3b6e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Modules/CalcPerform.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,7 @@ function calcs.perform(env, skipEHP)
18751875
local cooldownOverride = modStore:Override(skillCfg, "CooldownRecovery")
18761876
local actual_cooldown = cooldownOverride or (activeSkill.skillData.cooldown + modStore:Sum("BASE", skillCfg, "CooldownRecovery")) / calcLib.mod(modStore, skillCfg, "CooldownRecovery")
18771877
local uptime = modDB:Flag(nil, "Condition:WarcryMaxHit") and 1 or m_min(full_duration / actual_cooldown, 1)
1878+
local extraWarcryModList = {}
18781879
if not modDB:Flag(nil, "CannotGainWarcryBuffs") then
18791880
if not buff.applyNotPlayer then
18801881
activeSkill.buffSkill = true
@@ -1902,10 +1903,12 @@ function calcs.perform(env, skipEHP)
19021903
mergeBuff(srcList, minionBuffs, buff.name)
19031904
end
19041905
if partyTabEnableExportBuffs then
1905-
local srcList = new("ModList")
1906+
local newModList = new("ModList")
19061907
local inc = skillModList:Sum("INC", skillCfg, "BuffEffect")
19071908
local more = skillModList:More(skillCfg, "BuffEffect")
1908-
buffExports["Warcry"][buff.name] = { effectMult = (1 + inc / 100) * more * uptime, modList = buff.modList }
1909+
newModList:AddList(buff.modList)
1910+
newModList:AddList(extraWarcryModList)
1911+
buffExports["Warcry"][buff.name] = { effectMult = (1 + inc / 100) * more * uptime, modList = newModList }
19091912
end
19101913
-- Special handling for the minion side to add the flat damage bonus
19111914
if activeSkill.activeEffect.grantedEffect.name == "Rallying Cry" and env.minion then

0 commit comments

Comments
 (0)