Skip to content

Commit 48c4f15

Browse files
committed
MISC(test): add triggerbot tests
1 parent b275df4 commit 48c4f15

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

spec/System/TestTriggers_spec.lua

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,4 +1359,54 @@ describe("TestTriggers", function()
13591359

13601360
assert.True(build.calcsTab.mainOutput.SkillTriggerRate ~= nil)
13611361
end)
1362+
1363+
it("Triggerbots CWCHandler", function()
1364+
build.skillsTab:PasteSocketGroup("Cyclone 1/0 Default 1\nCast while Channelling 20/20 Default 1\nFireball 1/0 Default 1\n")
1365+
runCallback("OnFrame")
1366+
local baseRate = build.calcsTab.mainOutput.SkillTriggerRate
1367+
assert.True(build.calcsTab.mainOutput.SkillTriggerRate ~= nil)
1368+
1369+
build.configTab.input.customMods = [[
1370+
Triggers Level 20 Summon Triggerbots when Allocated
1371+
]]
1372+
build.configTab:BuildModList()
1373+
runCallback("OnFrame")
1374+
assert.are.equals(math.floor(build.calcsTab.mainOutput.SkillTriggerRate * 100), math.floor(baseRate * 100))
1375+
end)
1376+
1377+
it("Triggerbots defaultHandler", function()
1378+
build.itemsTab:CreateDisplayItemFromRaw([[Elemental 1H Sword
1379+
Eternal Sword
1380+
Crafted: true
1381+
Prefix: {range:0.5}WeaponElementalDamageOnWeapons4
1382+
Prefix: None
1383+
Prefix: None
1384+
Suffix: {range:0.5}LocalIncreasedAttackSpeed3
1385+
Suffix: {range:0.5}LocalCriticalStrikeChance3
1386+
Suffix: {range:0.5}LocalCriticalMultiplier4
1387+
Quality: 20
1388+
Sockets: G-G-G
1389+
LevelReq: 66
1390+
Implicits: 1
1391+
{tags:attack}+475 to Accuracy Rating
1392+
12% increased Attack Speed
1393+
22% increased Critical Strike Chance
1394+
+27% to Global Critical Strike Multiplier
1395+
40% increased Elemental Damage with Attack Skills]])
1396+
build.itemsTab:AddDisplayItem()
1397+
runCallback("OnFrame")
1398+
1399+
build.skillsTab:PasteSocketGroup("Cast On Critical Strike 20/0 Default 1\nArc 20/0 Default 1\nCyclone 20/0 Default 1\n")
1400+
runCallback("OnFrame")
1401+
1402+
local baseRate = build.calcsTab.mainOutput.SkillTriggerRate
1403+
assert.True(build.calcsTab.mainOutput.SkillTriggerRate ~= nil)
1404+
1405+
build.configTab.input.customMods = [[
1406+
Triggers Level 20 Summon Triggerbots when Allocated
1407+
]]
1408+
build.configTab:BuildModList()
1409+
runCallback("OnFrame")
1410+
assert.are.equals(math.floor(build.calcsTab.mainOutput.SkillTriggerRate * 100), math.floor(baseRate * 100))
1411+
end)
13621412
end)

0 commit comments

Comments
 (0)