From 9744d6a114959579d9a6f3edd06c9e8ae842b004 Mon Sep 17 00:00:00 2001 From: Lucas Karsten Date: Fri, 20 Nov 2026 14:39:32 -0300 Subject: [PATCH] Add Fleshrend stacks config for Pact of Ghorr Hunger of Ghorr triggers Fleshrend, whose debuff stacks up to 3 times and makes the enemy take 25% increased Damage over Time per stack. PoB did not model it. Add a Skill Options count, shown with Pact of Ghorr, that applies the debuff to the enemy, capped at 3 stacks. --- spec/System/TestSkills_spec.lua | 18 ++++++++++++++++++ src/Modules/ConfigOptions.lua | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/spec/System/TestSkills_spec.lua b/spec/System/TestSkills_spec.lua index cde56864a9..47974825a7 100644 --- a/spec/System/TestSkills_spec.lua +++ b/spec/System/TestSkills_spec.lua @@ -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") diff --git a/src/Modules/ConfigOptions.lua b/src/Modules/ConfigOptions.lua index c258394668..f21089d8ac 100644 --- a/src/Modules/ConfigOptions.lua +++ b/src/Modules/ConfigOptions.lua @@ -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 })