-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArms Rotation
891 lines (869 loc) · 46 KB
/
Arms Rotation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1, icon = br.player.spell.cleave },
[2] = { mode = "Mult", value = 2 , overlay = "Multiple Target Rotation", tip = "Multiple target rotation used.", highlight = 0, icon = br.player.spell.whirlwind },
[2] = { mode = "Sing", value = 3 , overlay = "Single Target Rotation", tip = "Single target rotation used.", highlight = 0, icon = br.player.spell.mortalStrike },
[4] = { mode = "Off", value = 4 , overlay = "DPS Rotation Disabled", tip = "Disable DPS Rotation", highlight = 0, icon = br.player.spell.victoryRush}
};
CreateButton("Rotation",1,0)
-- Cooldown Button
CooldownModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Cooldowns Automated", tip = "Automatic Cooldowns - Boss Detection.", highlight = 1, icon = br.player.spell.battleShout },
[3] = { mode = "Off", value = 3 , overlay = "Cooldowns Disabled", tip = "No Cooldowns will be used.", highlight = 0, icon = br.player.spell.battleShout }
};
CreateButton("Cooldown",2,0)
-- Defensive Button
DefensiveModes = {
[1] = { mode = "On", value = 1 , overlay = "Defensive Enabled", tip = "Includes Defensive Cooldowns.", highlight = 1, icon = br.player.spell.dieByTheSword },
[2] = { mode = "Off", value = 2 , overlay = "Defensive Disabled", tip = "No Defensives will be used.", highlight = 0, icon = br.player.spell.dieByTheSword }
};
CreateButton("Defensive",3,0)
-- Interrupt Button
InterruptModes = {
[1] = { mode = "On", value = 1 , overlay = "Interrupts Enabled", tip = "Includes Basic Interrupts.", highlight = 1, icon = br.player.spell.pummel },
[2] = { mode = "Off", value = 2 , overlay = "Interrupts Disabled", tip = "No Interrupts will be used.", highlight = 0, icon = br.player.spell.pummel }
};
CreateButton("Interrupt",4,0)
-- Heroic Charge
HeroicModes = {
[1] = { mode = "On", value = 1 , overlay = "Heroic Charge Enabled", tip = "Will use Heroic Charge.", highlight = 1, icon = br.player.spell.heroicLeap },
[2] = { mode = "Off", value = 2 , overlay = "Heroic Charge Disabled", tip = "Will NOT use Heroic Charge.", highlight = 0, icon = br.player.spell.heroicLeap }
};
CreateButton("Heroic",5,0)
-- Bladestorm
BladestormModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Bladestorm auto mode", tip = "WIll use bladestorm Automatically", highlight = 1, icon = br.player.spell.bladestorm },
[2] = { mode = "Manual", value = 2 , overlay = "Bladestorm manual use", tip = "Will not use Bladestorm", highlight = 0, icon = br.player.spell.bladestorm }
};
CreateButton("Bladestorm",6,0)
end
---------------
--- OPTIONS ---
---------------
local function createOptions()
local optionTable
local function rotationOptions()
-----------------------
--- GENERAL OPTIONS ---
-----------------------
section = br.ui:createSection(br.ui.window.profile, "General")
-- Dummy DPS Test
br.ui:createSpinner(section, "DPS Testing", 5, 5, 60, 5, "|cffFFFFFFSet to desired time for test in minuts. Min: 5 / Max: 60 / Interval: 5")
-- Pre-Pull Timer
br.ui:createSpinner(section, "Pre-Pull Timer", 5, 1, 10, 1, "|cffFFFFFFSet to desired time to start Pre-Pull (DBM Required). Min: 1 / Max: 10 / Interval: 1")
-- AoE Slider
br.ui:createSpinnerWithout(section, "AoE", 2, 1, 10, 1, "|cffFFFFFFSet to desired targets to start AoE Rotation. Min: 1 / Max: 10 / Interval: 1")
-- Battle Shout
br.ui:createCheckbox(section, "Battle Shout")
-- Berserker Rage
br.ui:createCheckbox(section,"Berserker Rage", "Check to use Berserker Rage")
-- Hamstring
br.ui:createCheckbox(section,"Hamstring", "Check to use Hamstring")
-- Sweeping Strikes
br.ui:createCheckbox(section,"Sweeping Strikes")
-- Warbreaker
br.ui:createSpinner(section,"Warbreaker", 2, 1, 10, 1, "|cffFFFFFFSet to desired targets to use Warbreaker. Min: 1 / Max: 10 / Interval: 1")
-- Heroic Throw
br.ui:createCheckbox(section,"Heroic Throw")
br.ui:checkSectionState(section)
------------------------
--- COOLDOWN OPTIONS ---
------------------------
section = br.ui:createSection(br.ui.window.profile, "Cooldowns")
-- Potion
br.ui:createCheckbox(section, "Potion")
-- Flask / Crystal
br.ui:createCheckbox(section, "Flask")
-- Racial
br.ui:createCheckbox(section, "Racial")
-- Trinkets
br.ui:createDropdownWithout(section, "Trinkets", {"|cff00FF001st Only","|cff00FF002nd Only","|cffFFFF00Both","|cffFF0000None"}, 1, "|cffFFFFFFSelect Trinket Usage.")
-- Avatar
br.ui:createCheckbox(section, "Avatar")
-- Bladestorm
br.ui:createSpinner(section, "Bladestorm", 5, 1, 10, 1, "|cffFFFFFFSet to desired targets to use Bladestorm when set to AOE. Min: 1 / Max: 10 / Interval: 1")
-- Ravager
br.ui:createDropdownWithout(section,"Ravager",{"Best","Target","Never"},1,"Desired Target of Ravager")
br.ui:checkSectionState(section)
-------------------------
--- DEFENSIVE OPTIONS ---
-------------------------
section = br.ui:createSection(br.ui.window.profile, "Defensive")
-- Healthstone
br.ui:createSpinner(section, "Healthstone/Potion", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Gift of The Naaru
if br.player.race == "Draenei" then
br.ui:createSpinner(section, "Gift of the Naaru", 50, 0, 100, 5, "|cffFFFFFFHealth Percent to Cast At")
end
-- Defensive Stance
br.ui:createSpinner(section, "Defensive Stance", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Die By The Sword
br.ui:createSpinner(section, "Die by the Sword", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Intimidating Shout
br.ui:createSpinner(section, "Intimidating Shout", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Rallying Cry
br.ui:createSpinner(section, "Rallying Cry", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Storm Bolt
br.ui:createSpinner(section, "Storm Bolt", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Victory Rush
br.ui:createSpinner(section, "Victory Rush", 60, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
br.ui:checkSectionState(section)
-------------------------
--- INTERRUPT OPTIONS ---
-------------------------
section = br.ui:createSection(br.ui.window.profile, "Interrupts")
-- Pummel
br.ui:createCheckbox(section,"Pummel")
-- Intimidating Shout
br.ui:createCheckbox(section,"Intimidating Shoult - Int")
-- Storm Bolt
br.ui:createCheckbox(section,"Storm Bolt - Int")
-- Interrupt Percentage
br.ui:createSpinner(section, "InterruptAt", 0, 0, 95, 5, "|cffFFBB00Cast Percentage to use at.")
br.ui:checkSectionState(section)
----------------------
--- TOGGLE OPTIONS ---
----------------------
section = br.ui:createSection(br.ui.window.profile, "Toggle Keys")
-- Single/Multi Toggle
br.ui:createDropdownWithout(section, "Rotation Mode", br.dropOptions.Toggle, 4)
--Cooldown Key Toggle
br.ui:createDropdownWithout(section, "Cooldown Mode", br.dropOptions.Toggle, 3)
--Defensive Key Toggle
br.ui:createDropdownWithout(section, "Defensive Mode", br.dropOptions.Toggle, 6)
-- Interrupts Key Toggle
br.ui:createDropdownWithout(section, "Interrupt Mode", br.dropOptions.Toggle, 6)
-- Bladestorm Toggle
br.ui:createDropdownWithout(section, "Bladestorm Mode", br.dropOptions.Toggle, 6)
-- Pause Toggle
br.ui:createDropdown(section, "Pause Mode", br.dropOptions.Toggle, 6)
br.ui:checkSectionState(section)
end
optionTable = {{
[1] = "Rotation Options",
[2] = rotationOptions,
}}
return optionTable
end
----------------
--- ROTATION ---
----------------
local function runRotation()
if br.timer:useTimer("debugArms", 0) then
--Print("Running: "..rotationName)
---------------
--- Toggles ---
---------------
UpdateToggle("Rotation",0.25)
UpdateToggle("Cooldown",0.25)
UpdateToggle("Defensive",0.25)
UpdateToggle("Interrupt",0.25)
UpdateToggle("Bladestorm",0.25)
br.player.mode.bladeStorm = br.data.settings[br.selectedSpec].toggles["Bladestorm"] -- ?????????
--------------
--- Locals ---
--------------
local buff = br.player.buff
local cast = br.player.cast
local combatTime = getCombatTime()
local cd = br.player.cd
local charges = br.player.charges
local debuff = br.player.debuff
local enemies = br.player.enemies
local equiped = br.player.equiped
local gcd = br.player.gcd
local gcdMax = br.player.gcdMax
local hastar = hastar or GetObjectExists("target")
local heirloomNeck = 122667 or 122668
local inCombat = br.player.inCombat
local inRaid = br.player.instance == "raid"
local inDungeon = br.player.instance == "dungeon"
local level = br.player.level
local mode = br.player.mode
local myHealth = br.player.health
local pullTimer = br.DBM:getPulltimer()
local race = br.player.race
local rage = br.player.power.rage.amount()
local spell = br.player.spell
local talent = br.player.talent
local thp = getHP("target")
local traits = br.player.traits
local units = br.player.units
units.get(5)
units.get(8)
enemies.get(8)
enemies.get(20)
if profileStop == nil then profileStop = false end
--------------------
--- Action Lists ---
--------------------
-- Action list - Extras
function actionList_Extra()
-- Dummy Test
if isChecked("DPS Testing") then
if GetObjectExists("target") then
if getCombatTime() >= (tonumber(getOptionValue("DPS Testing"))*60) and isDummy() then
StopAttack()
ClearTarget()
Print(tonumber(getOptionValue("DPS Testing")) .." Minute Dummy Test Concluded - Profile Stopped")
profileStop = true
end
end
end -- End Dummy Test
-- Battle Shout
if isChecked("Battle Shout") and cast.able.battleShout() then
for i = 1, #br.friend do
local thisUnit = br.friend[i].unit
if getDistance(thisUnit) < 100 and not buff.battleShout.exists()(thisUnit) then
if cast.battleShout() then return end
end
end
end
-- Berserker Rage
if isChecked("Berserker Rage") and hasNoControl(spell.berserkerRage) then
if cast.berserkerRage() then return end
end
end -- End Action List - Extra
-- Action List - Defensive
function actionList_Defensive()
if useDefensive() then
-- Healthstone/Health Potion
if isChecked("Healthstone/Potion") and myHealth <= getOptionValue("Healthstone/Potion")
and inCombat and (hasHealthPot() or hasItem(5512))
then
if canUse(5512) then
useItem(5512)
elseif canUse(getHealthPot()) then
useItem(getHealthPot())
end
end
-- Gift of the Naaru
if isChecked("Gift of the Naaru") and cast.able.racial() and myHealth <= getOptionValue("Gift of the Naaru") and race=="Draenei" and cd.giftOfTheNaaru.remain() == 0 then
if cast.racial() then return end
end
-- Defensive Stance
if isChecked("Defensive Stance") and cast.able.defensiveStance() then
if myHealth <= getOptionValue("Defensive Stance") and not buff.defensiveStance.exists() then
if cast.defensiveStance() then return end
elseif buff.defensiveStance.exists() and php > getOptionValue("Defensive Stance") then
if cast.defensiveStance() then return end
end
end
-- Die By The Sword
if isChecked("Die By The Sword") and cast.able.dieByTheSword() and inCombat and myHealth <= getOptionValue("Die By The Sword") then
if cast.dieByTheSword() then return end
end
-- Rallying Cry
if isChecked("Rallying Cry") and cast.able.rallyingCry() and inCombat and myHealth <= getOptionValue("Rallying Cry") then
for i = 1, #br.friend do
local thisUnit = br.friend[i].unit
if getDistance(thisUnit) < 40 and getHP(thisUnit) <= getOptionValue("Rallying Cry") then
if cast.battleShout() then return end
end
end
if cast.rallyingCry() then return end
end
-- Victory Rush
if isChecked("Victory Rush") and (cast.able.victoryRush() or cast.able.impendingVictory()) and inCombat and myHealth <= getOptionValue("Victory Rush") and buff.victorious.exists() then
if talent.impendingVictory then
if cast.impendingVictory() then return end
else
if cast.victoryRush() then return end
end
end
end -- End Defensive Check
end -- End Action List - Defensive
-- Action List - Interrupts
function actionList_Interrupts()
if useInterrupts() then
for i=1, #enemies.yards20 do
thisUnit = enemies.yards20[i]
distance = getDistance(thisUnit)
if canInterrupt(thisUnit,getOptionValue("InterruptAt")) then
-- Pummel
if isChecked("Pummel") and cast.able.pummel(thisUnit) and distance < 5 then
if cast.pummel(thisUnit) then return end
end
-- Intimidating Shout
if isChecked("Intimidating Shout - Int") and cast.able.intimidatingShout() and distance < 8 and cd.pummel.remain() > 0 then
if cast.intimidatingShout() then return end
end
-- Storm Bolt
if isChecked("Storm Bolt - Int") and cast.able.stormBolt(thisUnit) and distance < 20 then
if cast.stormBolt(thisUnit) then return end
end
end
end
end
end -- End Action List - Interrupts
-- Action List - Cooldowns
function actionList_Cooldowns()
if getDistance(units.dyn5) < 5 and useCDs() then
-- Potion
-- potion
if isChecked("Potion") and inRaid then
if canUse(13) then
useItem(13)
end
if canUse(14) then
useItem(14)
end
end
-- Racials
-- actions+=/blood_fury,if=debuff.colossus_smash.up
-- actions+=/berserking,if=debuff.colossus_smash.up
-- actions+=/arcane_torrent,if=debuff.colossus_smash.down&cooldown.mortal_strike.remains>1.5&rage<50
-- actions+=/lights_judgment,if=debuff.colossus_smash.down
-- actions+=/fireblood,if=debuff.colossus_smash.up
-- actions+=/ancestral_call,if=debuff.colossus_smash.up
if isChecked("Racial") and cast.able.racial()
and ((debuff.colossusSmash.exists(units.dyn5) and (race == "Orc" or race == "Troll" or race == "DarkIronDwarf" or race == "MagharOrc"))
or (not debuff.colossusSmash.exists(units.dyn5) and ((race == "BloodElf" and cd.mortalStrike.remain() > 1.5 and power < 50) or race == "LightforgedDraenei")))
then
if race == "LightforgedDraenei" then
if cast.racial("target","ground") then return true end
else
if cast.racial("player") then return true end
end
end
-- Avatar
-- avatar,if=cooldown.colossus_smash.remains<8|(talent.warbreaker.enabled&cooldown.warbreaker.remains<8)
if isChecked("Avatar") and cast.able.avatar() then
if cd.colossusSmash.remain() < 8 or (talent.warbreaker and cd.warbreaker.remain() < 8) then
if cast.avatar() then return end
end
end
-- Touch of the Void
if isChecked("Touch of the Void") then
if hasEquiped(128318) then
if GetItemCooldown(128318)==0 then
useItem(128318)
end
end
end
-- Trinkets
if getOptionValue("Trinkets") ~= 4 then
if (getOptionValue("Trinkets") == 1 or getOptionValue("Trinkets") == 3) and canUse(13) then
useItem(13)
end
if (getOptionValue("Trinkets") == 2 or getOptionValue("Trinkets") == 3) and canUse(14) then
useItem(14)
end
end
end
end -- End Action List - Cooldowns
-- Action List - Pre-Combat
function actionList_PreCombat()
-- Flask
-- flask,type=greater_draenic_strength_flask
if isChecked("Str-Pot") then
if inRaid and canFlask and flaskBuff==0 and not UnitBuffID("player",176151) then
useItem(br.player.flask.wod.strengthBig)
return true
end
if flaskBuff==0 then
if br.player.useCrystal() then return end
end
end
-- food,type=sleeper_sushi
-- snapshot_stats
-- potion,name=draenic_strength
-- if useCDs() and inRaid and isChecked("Str-Pot") and isChecked("Pre-Pull Timer") and pullTimer <= getOptionValue("Pre-Pull Timer") then
-- if canUse(109219) then
-- useItem(109219)
-- end
-- end
end -- End Action List - Pre-Combat
-- Action List - Movement
function actionList_Movement()
if mode.mover == 1 and isValidUnit("target") then
-- Heroic Leap
-- heroic_leap
if isChecked("Heroic Leap") and cast.able.heroicLeap() and (getOptionValue("Heroic Leap")==6 or (SpecificToggle("Heroic Leap") and not GetCurrentKeyBoardFocus())) then
-- Best Location
if getOptionValue("Heroic Leap - Target") == 1 then
if cast.heroicLeap("best",nil,1,8) then return end
end
-- Target
if getOptionValue("Heroic Leap - Target") == 2 and getDistance("target") >= 8 then
if cast.heroicLeap("target","ground") then return end
end
end
-- Charge
-- charge
if isChecked("Charge") and cast.able.charge("target") and getDistance("target") >= 8 then
if (cd.heroicLeap.remain() > 0 and cd.heroicLeap.remain() < 43) or not isChecked("Heroic Leap") or level < 26 then
if cast.charge("target") then return end
end
end
-- Storm Bolt
-- storm_bolt
if isChecked("Storm Bolt") and cast.able.stormBolt("target") then
if cast.stormBolt("target") then return end
end
-- Heroic Throw
-- heroic_throw
if isChecked("Heroic Throw")
and cast.able.heroicThrow() and getDistance("target") >= 8 and (cast.last.charge() or charges.charge.count() == 0 or not isChecked("Charge")) then
if cast.heroicThrow("target") then return end
end
end
end
-- Action List - Execute
function actionList_Execute()
-- Skullsplitter
-- skullsplitter,if=rage<60&(!talent.deadly_calm.enabled|buff.deadly_calm.down)
if cast.able.skullsplitter() and (rage < 60 and (not talent.deadlyCalm or not buff.deadlyCalm.exists())) then
if cast.skullsplitter() then return end
end
-- Ravager
-- ravager,if=!buff.deadly_calm.up&(cooldown.colossus_smash.remains<2|(talent.warbreaker.enabled&cooldown.warbreaker.remains<2))
if cast.able.ravager() and useCDs() and getOptionValue("Ravager") ~= 3 and talent.ravager
and (not buff.deadlyCalm.exists() and (cd.colossusSmash.remain() < 2 or (talent.warbreaker and cd.warbreaker.remain()<2)))
then
-- Best Location
if getOptionValue("Ravager") == 1 then
if cast.ravager("best",nil,1,8) then return end
end
-- Target
if getOptionValue("Ravager") == 2 then
if cast.ravager("target","ground") then return end
end
end
-- Colossus Smash
-- colossus_smash,if=debuff.colossus_smash.down
if not talent.warbreaker and cast.able.colossusSmash() and (not debuff.colossusSmash.exists(units.dyn5)) then
if cast.colossusSmash() then return end
end
-- Warbreaker
-- warbreaker,if=debuff.colossus_smash.down
if isChecked("Warbreaker") and cast.able.warbreaker() and talent.warbreaker and (not debuff.colossusSmash.exists(units.dyn5))
and #enemies.yards8 >= getOptionValue("Warbreaker")
then
if cast.warbreaker() then return end
end
-- Deadly Calm
-- deadly_calm
if cast.able.deadlyCalm() then
if cast.deadlyCalm() then return end
end
-- Bladestorm
-- bladestorm,if=rage<30&!buff.deadly_calm.up
if mode.bladeStorm == 1
and cast.able.bladestorm(nil,"aoe") and (isChecked("Bladestorm") and #enemies.yards8 >= getOptionValue("Bladestorm")) and not talent.ravager
and getDistance(units.dyn8) < 8 and (rage < 30 and not buff.deadlyCalm.exists())
then
if cast.bladestorm(nil,"aoe") then return end
end
-- Cleave
-- cleave,if=spell_targets.whirlwind>2
if cast.able.cleave(nil,"aoe") and ((mode.rotation == 1 and #enemies.yards8 > 2) or (mode.rotation == 2 and #enemies.yards8 > 0)) then
if cast.cleave(nil,"aoe") then return end
end
-- Slam
-- slam,if=buff.crushing_assault.up
if cast.able.slam() and buff.crushingAssasult.exists() then
if cast.slam() then return end
end
-- Mortal Strike
-- mortal_strike,if=buff.overpower.stack=2&talent.dreadnaught.enabled|buff.executioners_precision.stack=2
if cast.able.mortalStrike() and (buff.overpower.stack() == 2 and talent.dreadnaught or debuff.executionersPrecision.stack(units.dyn5) == 2) then
if cast.mortalStrike() then return end
end
-- Execute
-- execute,if=buff.deadly_calm.up
if cast.able.execute() and (buff.deadlyCalm.exists()) then
if cast.execute() then return end
end
-- Overpower
-- overpower
if cast.able.overpower() then
if cast.overpower() then return end
end
-- Execute
-- execute
if cast.able.execute() then
if cast.execute() then return end
end
end -- End Action List - Execute
-- Action List - Single
function actionList_Single()
-- Rend
-- rend,if=remains<=duration*0.3&debuff.colossus_smash.down
if cast.able.rend() and (debuff.rend.refresh(units.dyn5) and not debuff.colossusSmash.exists(units.dyn5)) then
if cast.rend() then return end
end
-- Skullsplitter
-- skullsplitter,if=rage<60&(!talent.deadly_calm.enabled|buff.deadly_calm.down)
if cast.able.skullsplitter() and (rage < 60 and (not talent.deadlyCalm or not buff.deadlyCalm.exists())) then
if cast.skullsplitter() then return end
end
-- Ravager
-- ravager,if=!buff.deadly_calm.up&(cooldown.colossus_smash.remains<2|(talent.warbreaker.enabled&cooldown.warbreaker.remains<2))
if cast.able.ravager() and useCDs() and (getOptionValue("Ravager") == 1 or (getOptionValue("Ravager") == 2 and useCDs()))
and talent.ravager and (not buff.deadlyCalm.exists() and (cd.colossusSmash.remain() < 2 or (talent.warbreaker and cd.warbreaker.remain() < 2)))
then
-- Best Location
if getOptionValue("Ravager") == 1 then
if cast.ravager("best",nil,1,8) then return end
end
-- Target
if getOptionValue("Ravager") == 2 then
if cast.ravager("target","ground") then return end
end
end
-- Colossus Smash
-- colossus_smash,if=debuff.colossus_smash.down
if not talent.warbreaker and cast.able.colossusSmash() and (not debuff.colossusSmash.exists(units.dyn5)) then
if cast.colossusSmash() then return end
end
-- Warbreaker
-- warbreaker,if=debuff.colossus_smash.down
if isChecked("Warbreaker") and cast.able.warbreaker() and talent.warbreaker and (not debuff.colossusSmash.exists(units.dyn5))
and #enemies.yards8 >= getOptionValue("Warbreaker")
then
if cast.warbreaker() then return end
end
-- Deadly Calm
-- deadly_calm
if cast.able.deadlyCalm() then
if cast.deadlyCalm() then return end
end
-- Execute
-- execute,if=buff.sudden_death.react
if cast.able.execute() and buff.suddenDeath.exists() then
if cast.execute() then return end
end
-- Bladestorm
-- bladestorm,if=cooldown.mortal_strike.remains&(!talent.deadly_calm.enabled|buff.deadly_calm.down)&((debuff.colossus_smash.up&!azerite.test_of_might.enabled)|buff.test_of_might.up)
if mode.bladeStorm == 1
and cast.able.bladestorm(nil,"aoe") and (isChecked("Bladestorm") and #enemies.yards8 >= getOptionValue("Bladestorm")) and not talent.ravager and cd.mortalStrike.remain() > 0
and (not talent.deadlyCalm or not buff.deadlyCalm.exists())
and ((debuff.colossusSmash.exists(units.dyn5) and not traits.testOfMight.active()) or buff.testOfMight.exists())
then
if cast.bladestorm(nil,"aoe") then return end
end
-- Cleave
-- cleave,if=spell_targets.whirlwind>2
if cast.able.cleave(nil,"aoe") and ((mode.rotation == 1 and #enemies.yards8 > 2) or (mode.rotation == 2 and #enemies.yards8 > 0)) then
if cast.cleave(nil,"aoe") then return end
end
-- Overpower
-- overpower,if=azerite.seismic_wave.rank=3
if cast.able.overpower() and traits.seismicWave.rank() == 3 then
if cast.overpower() then return end
end
-- Mortal Strike
-- mortal_strike
if cast.able.mortalStrike() then
if cast.mortalStrike() then return end
end
-- Whirlwind
-- whirlwind,if=talent.fervor_of_battle.enabled&(buff.deadly_calm.up|rage>=60)
if cast.able.whirlwind(nil,"aoe") and (talent.fervorOfBattle and (buff.deadlyCalm.exists() or rage >= 60)) then
if cast.whirlwind(nil,"aoe") then return end
end
-- Overpower
-- overpower
if cast.able.overpower() then
if cast.overpower() then return end
end
-- Whirlwind
-- whirlwind,if=talent.fervor_of_battle.enabled&(!azerite.test_of_might.enabled|debuff.colossus_smash.up)
if cast.able.whirlwind(nil,"aoe") and (talent.fervorOfBattle
and (not traits.testOfMight.active() or debuff.colossusSmash.exists(units.dyn5)))
then
if cast.whirlwind(nil,"aoe") then return end
end
-- Slam
-- slam,if=!talent.fervor_of_battle.enabled&(!azerite.test_of_might.enabled|debuff.colossus_smash.up|buff.deadly_calm.up|rage>=60)
if cast.able.slam() and (not talent.fervorOfBattle and (not traits.testOfMight.active()
or debuff.colossusSmash.exists() or buff.deadlyCalm.exists() or rage >= 60))
then
if cast.slam() then return end
end
end -- End Action List - Single
-- Action List - MultiTarget
function actionList_FiveTarget()
-- Skullsplitter
-- skullsplitter,if=rage<60&(!talent.deadly_calm.enabled|buff.deadly_calm.down)
if cast.able.skullsplitter() and (rage < 60 and (not talent.deadlyCalm or not buff.deadlyCalm.exists())) then
if cast.skullsplitter() then return end
end
-- Ravager
-- ravager,if=(!talent.warbreaker.enabled|cooldown.warbreaker.remains<2)
if cast.able.ravager() and (getOptionValue("Ravager") == 1 or (getOptionValue("Ravager") == 2 and useCDs())) and talent.ravager
and (not talent.warbreaker or cd.warbreaker.remain() < 2)
then
-- Best Location
if getOptionValue("Ravager") == 1 then
if cast.ravager("best",nil,1,8) then return end
end
-- Target
if getOptionValue("Ravager") == 2 then
if cast.ravager("target","ground") then return end
end
end
-- Colossus Smash
-- colossus_smash,if=debuff.colossus_smash.down
if not talent.warbreaker and cast.able.colossusSmash() and (not debuff.colossusSmash.exists(units.dyn5)) then
if cast.colossusSmash() then return end
end
-- Warbreaker
-- warbreaker,if=debuff.colossus_smash.down
if isChecked("Warbreaker") and cast.able.warbreaker() and talent.warbreaker and (not debuff.colossusSmash.exists(units.dyn5))
and #enemies.yards8 >= getOptionValue("Warbreaker")
then
if cast.warbreaker() then return end
end
-- Bladestorm
-- bladestorm,if=buff.sweeping_strikes.down&(!talent.deadly_calm.enabled|buff.deadly_calm.down)&((debuff.colossus_smash.remains>4.5&!azerite.test_of_might.enabled)|buff.test_of_might.up)
if mode.bladeStorm == 1
and cast.able.bladestorm(nil,"aoe") and (isChecked("Bladestorm") and #enemies.yards8 >= getOptionValue("Bladestorm")) and not talent.ravager
and (not buff.sweepingStrikes.exists() and (not talent.deadlyCalm or not buff.deadlyCalm.exists())
and ((debuff.colossusSmash.remain(units.dyn5) > 4.5 and not traits.testOfMight.active()) or buff.testOfMight.exists()))
then
if cast.bladestorm(nil,"aoe") then return end
end
-- Deadly Calm
-- deadly_calm
if cast.able.deadlyCalm() then
if cast.deadlyCalm() then return end
end
-- Cleave
-- cleave
if cast.able.cleave(nil,"aoe") then
if cast.cleave(nil,"aoe") then return end
end
-- Execute
-- execute,if=(!talent.cleave.enabled&dot.deep_wounds.remains<2)|(buff.sudden_death.react|buff.stone_heart.react)&(buff.sweeping_strikes.up|cooldown.sweeping_strikes.remains>8)
if cast.able.execute() and ((not talent.cleave and debuff.deepWounds.remain(units.dyn5) < 2) or (buff.suddenDeath.exists() or buff.stoneHeart.exists())
and (buff.sweepingStrikes.exists() or cd.sweepingStrikes.remain() > 8))
then
if cast.execute() then return end
end
-- Mortal Strike
-- mortal_strike,if=(!talent.cleave.enabled&dot.deep_wounds.remains<2)|buff.sweeping_strikes.up&buff.overpower.stack=2&(talent.dreadnaught.enabled|buff.executioners_precision.stack=2)
if cast.able.mortalStrike() and ((not talent.cleave and debuff.deepWounds.remain(units.dyn5) < 2) or buff.sweepingStrikes.exists()
and buff.overpower.stack() == 2 and (talent.dreadnaught or buff.executionersPrecision.stack() == 2))
then
if cast.mortalStrike() then return end
end
-- Whirlwind
-- whirlwind,if=debuff.colossus_smash.up|(buff.crushing_assault.up&talent.fervor_of_battle.enabled)
if cast.able.whirlwind(nil,"aoe") and (debuff.colossusSmash.exists(units.dyn5) or (buff.crushingAssasult.exists() and talent.fervorOfBattle)) then
if cast.whirlwind(nil,"aoe") then return end
end
-- whirlwind,if=buff.deadly_calm.up|rage>60
if cast.able.whirlwind(nil,"aoe") and (buff.deadlyCalm.exists() or rage > 60) then
if cast.whirlwind(nil,"aoe") then return end
end
-- Overpower
-- overpower
if cast.able.overpower() then
if cast.overpower() then return end
end
-- Whirlwind
-- whirlwind
if cast.able.whirlwind(nil,"aoe") then
if cast.whirlwind(nil,"aoe") then return end
end
end -- End Action List - Five Target
-- Action List - HAC
function actionList_HAC()
-- Rend
-- rend,if=remains<=duration*0.3&(!raid_event.adds.up|buff.sweeping_strikes.up)
if cast.able.rend() and debuff.rend.refresh(units.dyn5) and (#enemies.yards8 == 1 or buff.sweepingStrikes.exists()) then
if cast.rend() then return end
end
-- Skullsplitter
-- skullsplitter,if=rage<60&(cooldown.deadly_calm.remains>3|!talent.deadly_calm.enabled)
if cast.able.skullsplitter() and rage < 60 and (cd.deadlyCalm.remain() > 3 or not talent.deadlyCalm) then
if cast.skullsplitter() then return end
end
-- Deadly Calm
-- deadly_calm,if=(cooldown.bladestorm.remains>6|talent.ravager.enabled&cooldown.ravager.remains>6)&(cooldown.colossus_smash.remains<2|(talent.warbreaker.enabled&cooldown.warbreaker.remains<2))
if cast.able.deadlyCalm() and ((cd.bladestorm.remain() > 6 or not isChecked("Bladestorm") or #enemies.yards8 < getOptionValue("Bladestorm")
or talent.ravager and (cd.ravager.remain() > 6 or getOptionValue("Ravager") == 3 or (getOptionValue("Ravager") == 2 and not useCDs())))
and (cd.colossusSmash.remain() < 2 or (talent.warbreaker and cd.warbreaker.remain() < 2)))
then
if cast.deadlyCalm() then return end
end
-- Ravager
-- ravager,if=(raid_event.adds.up|raid_event.adds.in>target.time_to_die)&(cooldown.colossus_smash.remains<2|(talent.warbreaker.enabled&cooldown.warbreaker.remains<2))
if cast.able.ravager() and (getOptionValue("Ravager") == 1 or (getOptionValue("Ravager") == 2 and useCDs())) and talent.ravager
and (cd.colossusSmash.remain() < 2 or (talent.warbreaker and cd.warbreaker.remain() < 2))
then
-- Best Location
if getOptionValue("Ravager") == 1 then
if cast.ravager("best",nil,1,8) then return end
end
-- Target
if getOptionValue("Ravager") == 2 then
if cast.ravager("target","ground") then return end
end
end
-- Colossus Smash
-- colossus_smash,if=raid_event.adds.up|raid_event.adds.in>40|(raid_event.adds.in>20&talent.anger_management.enabled)
if not talent.warbreaker and cast.able.colossusSmash() and (not debuff.colossusSmash.exists(units.dyn5)) then
if cast.colossusSmash() then return end
end
-- Warbreaker
-- warbreaker,if=raid_event.adds.up|raid_event.adds.in>40|(raid_event.adds.in>20&talent.anger_management.enabled)
if isChecked("Warbreaker") and cast.able.warbreaker() and talent.warbreaker and (not debuff.colossusSmash.exists(units.dyn5))
and #enemies.yards8 >= getOptionValue("Warbreaker")
then
if cast.warbreaker() then return end
end
-- Bladestorm
-- bladestorm,if=(debuff.colossus_smash.up&raid_event.adds.in>target.time_to_die)|raid_event.adds.up&((debuff.colossus_smash.remains>4.5&!azerite.test_of_might.enabled)|buff.test_of_might.up)
if mode.bladeStorm == 1
and cast.able.bladestorm(nil,"aoe") and isChecked("Bladestorm") and not talent.ravager
and ((debuff.colossusSmash.remain(units.dyn5) > 4.5 and not traits.testOfMight.active()) or buff.testOfMight.exists())
then
if cast.bladestorm(nil,"aoe") then return end
end
-- Overpower
-- overpower,if=!raid_event.adds.up|(raid_event.adds.up&azerite.seismic_wave.enabled)
if cast.able.overpower() and (#enemies.yards8 == 1 or (#enemies.yards8 > 1 and traits.seismicWave.active())) then
if cast.overpower() then return end
end
-- Cleave
-- cleave,if=spell_targets.whirlwind>2
if cast.able.cleave(nil,"aoe") and ((mode.rotation == 1 and #enemies.yards8 > 2) or (mode.rotation == 2 and #enemies.yards8 > 0)) then
if cast.cleave(nil,"aoe") then return end
end
-- Execute
-- execute,if=!raid_event.adds.up|(!talent.cleave.enabled&dot.deep_wounds.remains<2)|buff.sudden_death.react
if cast.able.execute() and ((mode.rotation == 1 and #enemies.yards8 == 1) or (mode.rotation == 3 and #enemies.yards8 > 0)
or (not talent.cleave and debuff.deepWounds.remain(units.dyn5) < 2) or buff.suddenDeath.exists())
then
if cast.execute() then return end
end
-- Mortal Strike
-- mortal_strike,if=!raid_event.adds.up|(!talent.cleave.enabled&dot.deep_wounds.remains<2)
if cast.able.mortalStrike() and ((mode.rotation == 1 and #enemies.yards8 == 1) or (mode.rotation == 3 and #enemies.yards8 > 0)
or (not talent.cleave and debuff.deepWounds.remain(units.dyn5) < 2))
then
if cast.mortalStrike() then return end
end
-- Whirlwind
-- whirlwind,if=raid_event.adds.up
if cast.able.whirlwind(nil,"aoe") and (mode.rotation == 1 and #enemies.yards8 > 1) or (mode.rotation == 2 and #enemies.yards8 > 0) then
if cast.whirlwind(nil,"aoe") then return end
end
-- Overpower
-- overpower
if cast.able.overpower() then
if cast.overpower() then return end
end
-- Whirlwind
-- whirlwind,if=talent.fervor_of_battle.enabled
if cast.able.whirlwind(nil,"aoe") and talent.fervorOfBattle then
if cast.whirlwind(nil,"aoe") then return end
end
-- Slam
-- slam,if=!talent.fervor_of_battle.enabled&!raid_event.adds.up
if cast.able.slam() and not talent.fervorOfBattle and ((mode.rotation == 1 and #enemies.yards8 == 1) or (mode.rotation == 3 and #enemies.yards8 > 0)) then
if cast.slam() then return end
end
end -- End Action List - HAC
-----------------
--- Rotations ---
-----------------
---------------------
--- Begin Profile ---
---------------------
-- Profile Stop | Pause
if not inCombat and not hastar and profileStop==true then
profileStop = false
elseif (inCombat and profileStop==true) or pause() or mode.rotation==4 then
return true
else
if actionList_Extra() then return end
if actionList_Defensive() then return end
---------------------------------
--- Out Of Combat - Rotations ---
---------------------------------
if not inCombat and isValidUnit("target") then
if actionList_PreCombat() then return end
if getDistance(units.dyn5)<5 then
if not IsCurrentSpell(6603) then
StartAttack(units.dyn5)
end
else
-- Action List - Movement
-- run_action_list,name=movement,if=movement.getDistance(units.dyn5)>5
-- if getDistance("target") >= 8 then
if actionList_Movement() then return end
-- end
end
end
-----------------------------
--- In Combat - Rotations ---
-----------------------------
if inCombat and isValidUnit(units.dyn5) then
-- Auto Attack
--auto_attack
-- if IsCurrentSpell(6603) and not GetUnitIsUnit(units.dyn5,"target") then
-- StopAttack()
-- else
-- StartAttack(units.dyn5)
-- end
if not IsCurrentSpell(6603) then
StartAttack(units.dyn5)
end
-- Action List - Movement
-- run_action_list,name=movement,if=movement.getDistance(units.dyn5)>5
-- if getDistance(units.dyn8) > 8 then
if actionList_Movement() then return end
-- end
-- Action List - Interrupts
if actionList_Interrupts() then return end
-- Action List - Cooldowns
if actionList_Cooldowns() then return end
-- Sweeping Strikes
-- sweeping_strikes,if=spell_targets.whirlwind>1&(cooldown.bladestorm.remains>10|cooldown.colossus_smash.remains>8|azerite.test_of_might.enabled)
if isChecked("Sweeping Strikes") and cast.able.sweepingStrikes() and #enemies.yards8 > 1 and mode.rotation ~= 3
and (cd.bladestorm.remain() > 10 or cd.colossusSmash.remain() > 8 or traits.testOfMight.active()
or (not isChecked("Bladestorm") or #enemies.yards8 < getOptionValue("Bladestorm")))
then
if cast.sweepingStrikes() then return end
end
-- Action List - HAC
-- run_action_list,name=hac,if=raid_event.adds.exists
if ((mode.rotation == 1 and #enemies.yards8 > 1) or (mode.rotation == 2 and #enemies.yards8 > 0)) and #enemies.yards8 < 5 then
if actionList_HAC() then return end
end
-- Action List - Five Target
-- run_action_list,name=five_target,if=spell_targets.whirlwind>4
if ((mode.rotation == 1 and #enemies.yards8 > 4) or (mode.rotation == 2 and #enemies.yards8 > 0)) then
if actionList_FiveTarget() then return end
end
-- Action List - Execute
-- run_action_list,name=execute,if=(talent.massacre.enabled&target.health.pct<35)|target.health.pct<20
if ((talent.massacre and getHP(units.dyn5) < 35) or getHP(units.dyn5) < 20) and level >= 8 then
if actionList_Execute() then return end
end
-- Action List - Single
-- run_action_list,name=single_target
if getHP(units.dyn5) >= 35 or (not talent.massacre and getHP(units.dyn5) >= 20) or level < 8 then
if actionList_Single() then return end
end
end -- End Combat Rotation
end -- Pause
end -- End Timer
end -- runRotation
local id = 71
if br.rotations[id] == nil then br.rotations[id] = {} end
tinsert(br.rotations[id],{
name = rotationName,
toggles = createToggles,
options = createOptions,
run = runRotation,
})