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
18 changes: 18 additions & 0 deletions spec/System/TestSkills_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,24 @@ describe("TestSkills", function()
end
end)

it("applies Fleshrend stacks from Pact of Ghorr as increased damage over time taken", function()
build.skillsTab:PasteSocketGroup("Creeping Frost 20/0 1\nPact of Ghorr 1/0 1")
runCallback("OnFrame")
local baseDPS = build.calcsTab.mainOutput.TotalDotDPS
assert.are.equals(0, build.calcsTab.mainEnv.enemyDB:Sum("INC", nil, "DamageTakenOverTime"))

build.configTab.input.fleshrendStacks = 3
build.configTab:BuildModList()
runCallback("OnFrame")
assert.are.equals(75, build.calcsTab.mainEnv.enemyDB:Sum("INC", nil, "DamageTakenOverTime"))
assert.are.near(baseDPS * 1.75, build.calcsTab.mainOutput.TotalDotDPS, baseDPS * 10 ^ -9)

build.configTab.input.fleshrendStacks = 5
build.configTab:BuildModList()
runCallback("OnFrame")
assert.are.equals(75, build.calcsTab.mainEnv.enemyDB:Sum("INC", nil, "DamageTakenOverTime"))
end)

it("ignores invalid extra supports while allowing support name collisions", function()
build.skillsTab:PasteSocketGroup("Slot: Gloves\nFireball 20/0 1")
runCallback("OnFrame")
Expand Down
4 changes: 4 additions & 0 deletions src/Modules/ConfigOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ return {
modList:NewMod("Condition:PlagueBearerInfecting", "FLAG", true, "Config")
end
end },
{ label = "Pact of Ghorr:", ifSkill = "Pact of Ghorr" },
{ var = "fleshrendStacks", type = "count", label = "# of Fleshrend stacks on enemy:", ifSkill = "Pact of Ghorr", tooltip = "Hunger of Ghorr periodically triggers Fleshrend, whose debuff stacks up to 3 times.\nEach stack causes the enemy to take 25% increased Damage over Time.\nThe debuff is short, so 3 stacks is a peak rather than a sustained value.", apply = function(val, modList, enemyModList)
enemyModList:NewMod("DamageTakenOverTime", "INC", 25 * m_min(val, 3), "Config", { type = "GlobalEffect", effectType = "Debuff", effectName = "Fleshrend" })
end },
{ label = "Perforate:", ifSkill = "Perforate", includeTransfigured = true },
{ var = "perforateSpikeOverlap", type = "count", label = "# of Overlapping Spikes:", tooltip = "Affects the DPS of Perforate in Blood Stance.\nMaximum is limited by the number of Spikes of Perforate.", ifSkill = "Perforate", includeTransfigured = true, apply = function(val, modList, enemyModList)
modList:NewMod("Multiplier:PerforateSpikeOverlap", "BASE", val, "Config", { type = "SkillName", skillName = "Perforate", includeTransfigured = true })
Expand Down
Loading