Skip to content

Commit e32556b

Browse files
authored
Added support for Fortification stacks above 20 (#8634)
Currently only seen for champion in 3.26 * Supports previously general parsing now scaling by fortification stacks above 20 * Limited by max stacks
1 parent 9c28f35 commit e32556b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/Modules/CalcPerform.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ local function doActorMisc(env, actor)
613613
local minStacks = m_min(modDB:Sum("BASE", nil, "MinimumFortification"), maxStacks)
614614
local stacks = modDB:Override(nil, "FortificationStacks") or (alliedFortify > 0 and alliedFortify) or (minStacks > 0 and minStacks) or maxStacks
615615
output.FortificationStacks = stacks
616+
output.FortificationStacksOver20 = m_min(m_max(0, stacks - 20), maxStacks - 20)
616617
if not modDB:Flag(nil,"Condition:NoFortificationMitigation") then
617618
local effectScale = 1 + modDB:Sum("INC", nil, "BuffEffectOnSelf") / 100
618619
local effect = m_floor(effectScale * stacks)

src/Modules/ModParser.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,7 @@ local modTagList = {
13891389
["per (%d+)%% missing cold resistance, up to a maximum of (%d+)%%"] = function(num, _, limit) return { tag = { type = "PerStat", stat = "MissingColdResist", div = num, globalLimit = tonumber(limit), globalLimitKey = "ReplicaNebulisCold" } } end,
13901390
["per endurance, frenzy or power charge"] = { tag = { type = "PerStat", stat = "TotalCharges" } },
13911391
["per fortification"] = { tag = { type = "PerStat", stat = "FortificationStacks" } },
1392+
["per fortification above 20"] = { tag = { type = "PerStat", stat = "FortificationStacksOver20" } },
13921393
["per totem"] = { tag = { type = "PerStat", stat = "TotemsSummoned" } },
13931394
["per summoned totem"] = { tag = { type = "PerStat", stat = "TotemsSummoned" } },
13941395
["for each summoned totem"] = { tag = { type = "PerStat", stat = "TotemsSummoned" } },

0 commit comments

Comments
 (0)