Skip to content

Commit ce8bffa

Browse files
vaisestLocalIdentity
andauthored
Fix Liminal Coil counting Marks as Curses (#2365)
* Filter CurseOnEnemy multiplier to only contain curses * Add test --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 063f09b commit ce8bffa

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

spec/System/TestItemMods_spec.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,12 @@ describe("TetsItemMods", function()
618618
-- more curse more dmg
619619
assert.are_not.equals(afterEleWeaknessPhys, afterEnfeeblePhys)
620620
assert.are_not.equals(afterEleWeaknessChaos, afterEnfeebleChaos)
621+
622+
build.skillsTab:PasteSocketGroup("Freezing Mark 20/0 1")
623+
runCallback("OnFrame")
624+
-- marks are not curses and should not grant more damage
625+
assert.are.equals(afterEnfeeblePhys, round(build.calcsTab.mainOutput.PhysicalStoredCombinedAvg))
626+
assert.are.equals(afterEnfeebleChaos, round(build.calcsTab.mainOutput.ChaosStoredCombinedAvg))
621627
end)
622628

623629
it("twisted empyrean", function()

src/Modules/CalcPerform.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3089,7 +3089,13 @@ function calcs.perform(env, skipEHP)
30893089
for _, modList in pairs(debuffs) do
30903090
enemyDB:AddList(modList)
30913091
end
3092-
modDB.multipliers["CurseOnEnemy"] = #curseSlots
3092+
local cursesInCurseSlots = {}
3093+
for _, slot in ipairs(curseSlots) do
3094+
if not slot.isMark then
3095+
table.insert(cursesInCurseSlots, slot)
3096+
end
3097+
end
3098+
modDB.multipliers["CurseOnEnemy"] = #cursesInCurseSlots
30933099
for _, slot in ipairs(curseSlots) do
30943100
enemyDB.conditions["Cursed"] = true
30953101
if slot.isMark then

0 commit comments

Comments
 (0)