Skip to content

Commit c6d4c4f

Browse files
author
LocalIdentity
committed
Test for bug
1 parent c4bb078 commit c6d4c4f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

spec/System/TestItemMods_spec.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,4 +553,21 @@ describe("TetsItemMods", function()
553553
assert.are_not.equals(64, build.calcsTab.mainOutput.Armour)
554554
runCallback("OnFrame")
555555
end)
556+
557+
it("Heralds apply exposure with Heraldry", function()
558+
build.skillsTab:PasteSocketGroup("Arc 20/0 Default 1\nHerald of Thunder 20/0 Default 1\n")
559+
runCallback("OnFrame")
560+
561+
assert.are.equals(0.5, build.calcsTab.mainOutput.LightningEffMult)
562+
563+
build.configTab.input.customMods = [[
564+
Nearby Enemies have Cold Exposure while you are affected by Herald of Ice
565+
Nearby Enemies have Fire Exposure while you are affected by Herald of Ash
566+
Nearby Enemies have Lightning Exposure while you are affected by Herald of Thunder
567+
]]
568+
build.configTab:BuildModList()
569+
runCallback("OnFrame")
570+
571+
assert.are.equals(0.6, build.calcsTab.mainOutput.LightningEffMult)
572+
end)
556573
end)

0 commit comments

Comments
 (0)