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
28 changes: 28 additions & 0 deletions spec/System/TestAilments_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/Data/ModCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 "}
Expand Down
4 changes: 4 additions & 0 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
if modDB:Flag(nil, "Condition:CanBeWithered") then
local effect = 6 * (100 + modDB:Sum("INC", nil, "WitherEffectOnSelf")) / 100 * modDB:More(nil, "WitherEffectOnSelf")
Expand Down
3 changes: 3 additions & 0 deletions src/Modules/ConfigOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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" })
Expand Down
1 change: 1 addition & 0 deletions src/Modules/ModParser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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") }) },
Expand Down