Skip to content
Open
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions spec/System/TestOffence_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,17 @@ describe("TestOffence", function()
assert.are.equals(1, build.calcsTab.mainOutput[outputName])
end)
end
it("uses the final totem limit when scaling area of effect", function()
build.skillsTab:PasteSocketGroup("Searing Bond of Detonation 20/0 1")
build.configTab.input.customMods = [[
+3 to Maximum Power Charges
Skills used by Totems have 10% more Area of Effect per maximum number of Summoned Totems
]]
build.configTab:BuildModList()
runCallback("OnFrame")

-- 1 base totem + 6 maximum power charges, so 70% more area of effect.
assert.are.equals(7, build.calcsTab.mainOutput.ActiveTotemLimit)
assert.are.equals(1.7, build.calcsTab.mainOutput.AreaOfEffectMod)
end)
end)
4 changes: 4 additions & 0 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,10 @@ function calcs.offence(env, actor, activeSkill)
end
end
if skillFlags.area or skillData.radius or (skillFlags.mine and activeSkill.skillTypes[SkillType.Aura]) then
-- add totem limit output early for conjoined spire
if skillFlags.totem then
output.ActiveTotemLimit = skillModList:Sum("BASE", skillCfg, "ActiveTotemLimit", "ActiveBallistaLimit")
end
calcAreaOfEffect(skillModList, skillCfg, skillData, skillFlags, output, breakdown)
end
if activeSkill.skillTypes[SkillType.Aura] then
Expand Down
Loading