From 5e425da670d2da349c8762e61b38ea0f0909e9bb Mon Sep 17 00:00:00 2001 From: David Medgyesy Date: Fri, 27 Nov 2026 15:17:36 +0100 Subject: [PATCH 1/2] Support Withered does not expire on Enemies Ignited by you Parse the Blackflame / Reliquarian line and set the enemy's Withered stacks to the 15 stack maximum when you can apply Wither and the enemy is Ignited. --- spec/System/TestAilments_spec.lua | 24 ++++++++++++++++++++++++ src/Data/ModCache.lua | 2 +- src/Modules/CalcPerform.lua | 4 ++++ src/Modules/ModParser.lua | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/spec/System/TestAilments_spec.lua b/spec/System/TestAilments_spec.lua index b91f3937225..e2a7bc75d33 100644 --- a/spec/System/TestAilments_spec.lua +++ b/spec/System/TestAilments_spec.lua @@ -116,4 +116,28 @@ describe("TestAilments", function() assert.are.equals(19, build.calcsTab.mainOutput.CurrentShock) end) + + it("Withered does not expire on Ignited enemies", function() + local function witheredStacks() + return build.calcsTab.mainEnv.enemyDB:GetMultiplier("WitheredStack") + end + build.skillsTab:PasteSocketGroup("Slot: Weapon 1\nFireball 20/0 1\n") + build.configTab.input.customMods = "Chaos Skills inflict up to 15 Withered Debuffs on Hit for 2 seconds" + build.configTab.input.multiplierWitheredStackCount = 5 + rebuild() + + assert.are.equals(5, witheredStacks()) + + build.configTab.input.customMods = "Chaos Skills inflict up to 15 Withered Debuffs on Hit for 2 seconds\nWithered does not expire on Enemies Ignited by you" + rebuild() + + -- enemy is not Ignited, so the configured stacks are still used + assert.are.equals(5, witheredStacks()) + + build.configTab.input.conditionEnemyIgnited = true + rebuild() + + assert.are.equals(15, witheredStacks()) + assert.are.equals(6 * 15, build.calcsTab.mainEnv.enemyDB:Sum("INC", nil, "ChaosDamageTaken")) + end) end) diff --git a/src/Data/ModCache.lua b/src/Data/ModCache.lua index 94ce6007e71..dba65832352 100755 --- a/src/Data/ModCache.lua +++ b/src/Data/ModCache.lua @@ -22699,7 +22699,7 @@ c["With at least 40 Strength in Radius, Molten Strike Projectiles Chain on impac c["With at least one corpse within 6 metres, Enemies within 6 metres deal 10% reduced Damage"]={{[1]={[1]={threshold=1,type="MultiplierThreshold",var="NearbyCorpse"},flags=0,keywordFlags=0,name="EnemyModifier",type="LIST",value={mod={flags=0,keywordFlags=0,name="Damage",type="INC",value=-10}}}},nil} c["With at least one corpse within 6 metres, you and Allies within 6 metres deal 10% more Damage"]={{[1]={[1]={threshold=1,type="MultiplierThreshold",var="NearbyCorpse"},flags=0,keywordFlags=0,name="ExtraAura",type="LIST",value={mod={flags=0,keywordFlags=0,name="Damage",type="MORE",value=10}}}},nil} c["Wither on Hit with this weapon against Enemies with at least 12 Poisons on them"]={{[1]={flags=0,keywordFlags=0,name="Condition:CanWither",type="FLAG",value=true}},nil} -c["Withered does not expire on Enemies Ignited by you"]={nil,"Withered does not expire on Enemies Ignited by you "} +c["Withered does not expire on Enemies Ignited by you"]={{[1]={flags=0,keywordFlags=0,name="WitheredDoesNotExpireOnIgnited",type="FLAG",value=true}},nil} c["Withered does not expire on Enemies Ignited by you +25% to Fire and Chaos Resistances"]={nil,"Withered does not expire on Enemies Ignited by you +25% to Fire and Chaos Resistances "} c["Withered you Inflict expires 10% slower"]={nil,"Withered you Inflict expires 10% slower "} c["Withered you Inflict expires 11% slower"]={nil,"Withered you Inflict expires 11% slower "} diff --git a/src/Modules/CalcPerform.lua b/src/Modules/CalcPerform.lua index 2aaa8459a81..58e76630025 100644 --- a/src/Modules/CalcPerform.lua +++ b/src/Modules/CalcPerform.lua @@ -862,6 +862,10 @@ local function doActorMisc(env, actor) modDB:NewMod("Condition:CanWither", "FLAG", true, "Config") local effect = modDB:Max(nil, "WitherEffectStack") enemyDB:NewMod("ChaosDamageTaken", "INC", effect, "Withered", { type = "Multiplier", var = "WitheredStack", limit = 15 } ) + -- Withered never expires on Ignited enemies, so the stacks build up to the maximum + if modDB:Flag(nil, "WitheredDoesNotExpireOnIgnited") and enemyDB:Flag(nil, "Condition:Ignited") then + enemyDB:NewMod("Multiplier:WitheredStack", "OVERRIDE", 15, "Withered does not expire") + end end if modDB:Flag(nil, "Condition:CanBeWithered") then local effect = 6 * (100 + modDB:Sum("INC", nil, "WitherEffectOnSelf")) / 100 * modDB:More(nil, "WitherEffectOnSelf") diff --git a/src/Modules/ModParser.lua b/src/Modules/ModParser.lua index a7f29d28835..3a32780f754 100644 --- a/src/Modules/ModParser.lua +++ b/src/Modules/ModParser.lua @@ -4297,6 +4297,7 @@ local specialModList = { ["inflict withered for (%d+) seconds on hit with this weapon"] = { flag("Condition:CanWither") }, ["chaos skills inflict up to (%d+) withered debuffs on hit for (%d+) seconds"] = { flag("Condition:CanWither") }, ["minions have (%d+)%% chance to inflict withered on hit"] = { mod("MinionModifier", "LIST", { mod = flag("Condition:CanWither") }) }, + ["withered does not expire on enemies ignited by you"] = { flag("WitheredDoesNotExpireOnIgnited") }, ["enemies take (%d+)%% increased elemental damage from your hits for each withered you have inflicted on them"] = function(num) return { mod("EnemyModifier", "LIST", { mod = mod("ElementalDamageTaken", "INC", num, { type = "Multiplier", var = "WitheredStack", limit = 15 }) }) } end, ["your hits cannot penetrate or ignore elemental resistances"] = { flag("CannotElePenIgnore") }, ["nearby enemies have malediction"] = { mod("EnemyModifier", "LIST", { mod = flag("HasMalediction") }) }, From 538ae041bfefcfedf088b36811a20bac2907c370 Mon Sep 17 00:00:00 2001 From: David Medgyesy Date: Fri, 27 Nov 2026 16:36:09 +0100 Subject: [PATCH 2/2] Make Blackflame's maximum Withered an explicit config option "Is the enemy Ignited?" can also mean someone else's Ignite, and it overruled a configured stack count. The 15 stacks now need their own option, shown only with the Blackflame line. --- spec/System/TestAilments_spec.lua | 52 +++++++++++++++++-------------- src/Modules/CalcPerform.lua | 4 +-- src/Modules/ConfigOptions.lua | 3 ++ 3 files changed, 33 insertions(+), 26 deletions(-) diff --git a/spec/System/TestAilments_spec.lua b/spec/System/TestAilments_spec.lua index e2a7bc75d33..d1e72605805 100644 --- a/spec/System/TestAilments_spec.lua +++ b/spec/System/TestAilments_spec.lua @@ -76,6 +76,34 @@ describe("TestAilments", function() assert.are.near(1.3, build.calcsTab.mainOutput.ShockEffectMod, 10 ^ -9) end) + it("Withered does not expire on Ignited enemies", function() + local function witheredStacks() + return build.calcsTab.mainEnv.enemyDB:GetMultiplier("WitheredStack") + end + build.skillsTab:PasteSocketGroup("Slot: Weapon 1\nFireball 20/0 1\n") + build.configTab.input.customMods = "Chaos Skills inflict up to 15 Withered Debuffs on Hit for 2 seconds" + build.configTab.input.multiplierWitheredStackCount = 5 + rebuild() + + assert.are.equals(5, witheredStacks()) + + build.configTab.input.customMods = "Chaos Skills inflict up to 15 Withered Debuffs on Hit for 2 seconds\nWithered does not expire on Enemies Ignited by you" + rebuild() + + assert.are.equals(5, witheredStacks()) + + -- an Ignited enemy alone keeps the configured stacks, the Ignite could be someone else's + build.configTab.input.conditionEnemyIgnited = true + rebuild() + assert.are.equals(5, witheredStacks()) + + build.configTab.input.conditionWitheredKeptByIgnite = true + rebuild() + + assert.are.equals(15, witheredStacks()) + assert.are.equals(6 * 15, build.calcsTab.mainEnv.enemyDB:Sum("INC", nil, "ChaosDamageTaken")) + end) + it("scales minion ailment duration with Barnacles", function() build.skillsTab:PasteSocketGroup("Slot: Weapon 1\nSummon Ice Golem 20/0 1\n") build.configTab.input.customMods = "Inflict Barnacles on nearby Enemies every second\nMinions gain 100% of Physical Damage as Extra Cold Damage" @@ -116,28 +144,4 @@ describe("TestAilments", function() assert.are.equals(19, build.calcsTab.mainOutput.CurrentShock) end) - - it("Withered does not expire on Ignited enemies", function() - local function witheredStacks() - return build.calcsTab.mainEnv.enemyDB:GetMultiplier("WitheredStack") - end - build.skillsTab:PasteSocketGroup("Slot: Weapon 1\nFireball 20/0 1\n") - build.configTab.input.customMods = "Chaos Skills inflict up to 15 Withered Debuffs on Hit for 2 seconds" - build.configTab.input.multiplierWitheredStackCount = 5 - rebuild() - - assert.are.equals(5, witheredStacks()) - - build.configTab.input.customMods = "Chaos Skills inflict up to 15 Withered Debuffs on Hit for 2 seconds\nWithered does not expire on Enemies Ignited by you" - rebuild() - - -- enemy is not Ignited, so the configured stacks are still used - assert.are.equals(5, witheredStacks()) - - build.configTab.input.conditionEnemyIgnited = true - rebuild() - - assert.are.equals(15, witheredStacks()) - assert.are.equals(6 * 15, build.calcsTab.mainEnv.enemyDB:Sum("INC", nil, "ChaosDamageTaken")) - end) end) diff --git a/src/Modules/CalcPerform.lua b/src/Modules/CalcPerform.lua index 58e76630025..7cb7c7dec66 100644 --- a/src/Modules/CalcPerform.lua +++ b/src/Modules/CalcPerform.lua @@ -862,8 +862,8 @@ local function doActorMisc(env, actor) modDB:NewMod("Condition:CanWither", "FLAG", true, "Config") local effect = modDB:Max(nil, "WitherEffectStack") enemyDB:NewMod("ChaosDamageTaken", "INC", effect, "Withered", { type = "Multiplier", var = "WitheredStack", limit = 15 } ) - -- Withered never expires on Ignited enemies, so the stacks build up to the maximum - if modDB:Flag(nil, "WitheredDoesNotExpireOnIgnited") and enemyDB:Flag(nil, "Condition:Ignited") then + -- Withered never expires on enemies you keep Ignited, so the stacks can be held at the maximum + if modDB:Flag(nil, "WitheredDoesNotExpireOnIgnited") and modDB:Flag(nil, "Condition:WitheredKeptByIgnite") then enemyDB:NewMod("Multiplier:WitheredStack", "OVERRIDE", 15, "Withered does not expire") end end diff --git a/src/Modules/ConfigOptions.lua b/src/Modules/ConfigOptions.lua index 18ca0dc1255..7fb7065cebe 100644 --- a/src/Modules/ConfigOptions.lua +++ b/src/Modules/ConfigOptions.lua @@ -1869,6 +1869,9 @@ Huge sets the radius to 11. { var = "multiplierWitheredStackCount", type = "count", label = "# of Withered Stacks:", ifFlag = "Condition:CanWither", tooltip = "Withered applies 6% increased ^xD02090Chaos ^7Damage Taken to the enemy, up to 15 stacks.", apply = function(val, modList, enemyModList) enemyModList:NewMod("Multiplier:WitheredStack", "BASE", val, "Config", { type = "Condition", var = "Effective" }) end }, + { var = "conditionWitheredKeptByIgnite", type = "check", label = "Withered kept at max by your Ignite?", ifFlag = "WitheredDoesNotExpireOnIgnited", tooltip = "Withered does not expire on Enemies Ignited by you.\nTick this if you keep the enemy Ignited yourself and have built Withered up to 15 stacks.\nIt replaces the # of Withered Stacks above.", apply = function(val, modList, enemyModList) + modList:NewMod("Condition:WitheredKeptByIgnite", "FLAG", true, "Config", { type = "Condition", var = "Effective" }) + end }, { var = "multiplierCorrosionStackCount", type = "count", label = "# of Corrosion Stacks:", ifFlag = "Condition:CanCorrode", tooltip = "Each stack of Corrosion applies -5000 to total Armour and -1000 to total ^x33FF77Evasion Rating ^7to the enemy.\nCorrosion lasts 4 seconds and refreshes the duration of existing Corrosion stacks\nCorrosion has no stack limit", apply = function(val, modList, enemyModList) enemyModList:NewMod("Multiplier:CorrosionStack", "BASE", val, "Config", { type = "Condition", var = "Effective" }) enemyModList:NewMod("Armour", "BASE", -5000, "Corrosion", { type = "Multiplier", var = "CorrosionStack" }, { type = "ActorCondition", actor = "enemy", var = "CanCorrode" })