Skip to content

Commit b1060e5

Browse files
committed
Change PoisonStackLimit to use "MIN" modType
1 parent 962aeba commit b1060e5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Modules/CalcOffence.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4371,14 +4371,14 @@ function calcs.offence(env, actor, activeSkill)
43714371
end
43724372

43734373
-- Calculate average number of poisons that will be active on the enemy at once
4374-
local poisonStackLimit = skillModList:Sum("BASE", cfg, "PoisonStackLimit")
4374+
local poisonStackLimit = skillModList:Min(cfg, "PoisonStackLimit")
43754375
local PoisonStacks = output.HitChance / 100 * poisonChance * additionalPoisonStacks * skillData.dpsMultiplier * (skillData.stackMultiplier or 1) * quantityMultiplier
43764376
if (globalOutput.HitSpeed or globalOutput.Speed) > 0 then
43774377
--assume skills with no cast, attack, or cooldown time are single cast
43784378
PoisonStacks = PoisonStacks * globalOutput.PoisonDuration * (globalOutput.HitSpeed or globalOutput.Speed)
43794379

43804380
-- If stack limit exists, avg. poison stack is more complicated
4381-
if poisonStackLimit > 0 and additionalPoisonStacks > 1 and PoisonStacks > poisonStackLimit then
4381+
if poisonStackLimit and poisonStackLimit > 0 and additionalPoisonStacks > 1 and PoisonStacks > poisonStackLimit then
43824382
-- Calc number of avg. poisons applied per hit (without hitrate multipliers)
43834383
local singleHitPoisonChance = output.HitChance / 100 * poisonChance
43844384
local singleHitPoisonStacks = singleHitPoisonChance * additionalPoisonStacks
@@ -4410,7 +4410,7 @@ function calcs.offence(env, actor, activeSkill)
44104410
if skillModList:Flag(nil, "Condition:SinglePoison") then
44114411
t_insert(globalBreakdown.PoisonStacks, "Capped to 1")
44124412
end
4413-
if poisonStackLimit > 0 and PoisonStacks >= poisonStackLimit then
4413+
if poisonStackLimit and PoisonStacks >= poisonStackLimit then
44144414
t_insert(globalBreakdown.PoisonStacks, "^8(affected by poison stack limit)")
44154415
end
44164416
end

src/Modules/ModParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3688,7 +3688,7 @@ local specialModList = {
36883688
["poisons on you expire (%d+)%% slower"] = function(num) return { mod("SelfPoisonDebuffExpirationRate", "BASE", -num) } end,
36893689
["(%d+)%% chance to inflict an additional poison on the same target when you inflict poison"] = function(num) return { mod("AdditionalPoisonChance", "BASE", num) } end,
36903690
["inflict (%d+) additional poisons? on the same target when you inflict poisons? with this weapon"] = function(num) return { mod("AdditionalPoisonStacks", "BASE", num, { type = "Condition", var = "{Hand}Attack" } ) } end,
3691-
["cannot poison enemies with at least (%d+) poisons? on them"] = function(num) return { mod("PoisonStackLimit", "BASE", num ) } end,
3691+
["cannot poison enemies with at least (%d+) poisons? on them"] = function(num) return { mod("PoisonStackLimit", "MIN", num ) } end,
36923692
["cannot inflict multiple poisons in the same hit"] = { flag("CannotMultiplePoison") },
36933693
["wither on hit with this weapon against enemies with at least (%d+) poisons on them"] = { flag("Condition:CanWither") },
36943694
-- Suppression

0 commit comments

Comments
 (0)