Skip to content

Commit 664549e

Browse files
author
LocalIdentity
committed
Fix Ahuana's Bite and Bonechill's "inc damage taken" mods stacking
The mods are not meant to stack with each other so I just use Ahuana's if it exists then fall back to Bonechill
1 parent 03e5d40 commit 664549e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Modules/CalcPerform.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,11 +3283,10 @@ function calcs.perform(env, skipEHP)
32833283
condition = "Chilled",
32843284
mods = function(num)
32853285
local mods = { modLib.createMod("ActionSpeed", "INC", -num, "Chill", { type = "Condition", var = "Chilled" }) }
3286-
if output.HasBonechill and (hasGuaranteedBonechill or enemyDB:Sum("BASE", nil, "ChillVal") > 0) then
3287-
t_insert(mods, modLib.createMod("ColdDamageTaken", "INC", num, "Bonechill", { type = "Condition", var = "Chilled" }))
3288-
end
32893286
if modDB:Flag(nil, "ChillEffectIncDamageTaken") then
32903287
t_insert(mods, modLib.createMod("DamageTaken", "INC", num, "Ahuana's Bite", { type = "Condition", var = "Chilled" }))
3288+
elseif output.HasBonechill and (hasGuaranteedBonechill or enemyDB:Sum("BASE", nil, "ChillVal") > 0) then
3289+
t_insert(mods, modLib.createMod("ColdDamageTaken", "INC", num, "Bonechill", { type = "Condition", var = "Chilled" }))
32913290
end
32923291
if modDB:Flag(nil, "ChillEffectLessDamageDealt") then
32933292
t_insert(mods, modLib.createMod("Damage", "MORE", -num / 2, "Shaper of Winter", { type = "Condition", var = "Chilled" }))

0 commit comments

Comments
 (0)