Skip to content

Commit d20acc4

Browse files
committed
Fix theoretical maxPoisonStacks
1 parent fd58246 commit d20acc4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/Modules/CalcOffence.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4430,13 +4430,9 @@ function calcs.offence(env, actor, activeSkill)
44304430

44314431
-- If stack limit exists, avg. poison stack is more complicated
44324432
if poisonStackLimit and poisonStackLimit > 0 and PoisonStacks > poisonStackLimit then
4433-
-- Calc number of avg. poisons applied per hit (without hit rate multipliers)
4434-
local singleHitPoisonChance = output.HitChance / 100 * poisonChance
4435-
local singleHitPoisonStacks = singleHitPoisonChance * additionalPoisonStacks
4436-
44374433
-- Calc how many hits will poison before limit is reached and theoretical max poison stacks, which is different from `poisonStackLimit` due to "additional" poison mechanics
4438-
local numPoisoningHits = m_ceil(poisonStackLimit / singleHitPoisonStacks)
4439-
local maxPoisonStacks = numPoisoningHits * singleHitPoisonStacks
4434+
local numPoisoningHits = m_ceil(poisonStackLimit / additionalPoisonStacks)
4435+
local maxPoisonStacks = numPoisoningHits * additionalPoisonStacks
44404436

44414437
-- Only use `maxPoisonStacks` if original value exceeds it
44424438
uncappedPoisonStacks = m_max(PoisonStacks, maxPoisonStacks)

0 commit comments

Comments
 (0)