-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassPresets.lua
More file actions
1183 lines (1125 loc) · 56.4 KB
/
Copy pathClassPresets.lua
File metadata and controls
1183 lines (1125 loc) · 56.4 KB
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
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- ClassPresets.lua - Per-class starter profiles and the starter loaders.
-- Author: Serv
-- Source: https://github.com/powerfulqa/BarWarden
-- License: see LICENSE; attribution preservation is required.
local addonName, ns = ...
-- ============================================================================
-- ClassPresets.lua: per-class starter profiles
--
-- A curated minimum-viable bar layout per class. Loaded on demand via the
-- "Load Class Starter" button in Options_Profiles.lua. The loader replaces
-- the active profile's `frames` table with a deep-copied, defaults-filled
-- version of the preset below. Existing user bars are overwritten (the UI
-- shows a confirmation dialog before doing so).
--
-- Curation sources (all files in 3.3.5.a\):
-- * !ElvinCDs/spells.lua : per-class cooldown IDs + metadata
-- * EventAlert/EventAlertSpellArray.lua : per-class proc IDs
-- * Forte_<Class>/Forte_<Class>.lua : cross-reference for duration
-- * ClassTimer/Bars/<Class>.lua : cross-reference for category
--
-- Spell IDs are 3.3.5a-era (WotLK). GetSpellInfo resolves them to names at
-- runtime; if a private server patches an ID we can update here without
-- touching the engine.
--
-- Positioning: each group anchors to CENTER of the screen at a distinct
-- (x, y) offset so a freshly-loaded preset doesn't dogpile every group on
-- top of each other. Users drag them into position after the load.
-- ============================================================================
-- ----------------------------------------------------------------------------
-- Partial-bar helpers. Each returns a minimal table with just the fields
-- that differ from BarWarden's per-bar defaults. MakeFullBar (in the loader
-- section below) expands these to full bar configs with requireClass set.
-- ----------------------------------------------------------------------------
local function cd(id, name)
return { trackMode = "Cooldown", spellId = id, name = name or "" }
end
-- Polymorphic helpers: pass a number to use a specific spell ID, or a string
-- to use the spell name (rank-agnostic, preferred for buffs/debuffs/procs so
-- levelling characters' lower-rank spells still match).
local function buff(spell, displayName)
if type(spell) == "number" then
return { trackMode = "Buff", spellId = spell, name = displayName or "", unit = "player" }
end
return { trackMode = "Buff", spellName = spell, name = displayName or spell, unit = "player" }
end
local function debuff(spell, displayName)
if type(spell) == "number" then
return { trackMode = "Debuff", spellId = spell, name = displayName or "", unit = "target", onlyMine = true }
end
return { trackMode = "Debuff", spellName = spell, name = displayName or spell, unit = "target", onlyMine = true }
end
local function proc(spell, displayName)
if type(spell) == "number" then
return { trackMode = "Proc", spellId = spell, name = displayName or "", unit = "player" }
end
return { trackMode = "Proc", spellName = spell, name = displayName or spell, unit = "player" }
end
local function runeBar(slot)
return { trackMode = "Runes", spellId = slot, name = "Rune " .. slot }
end
local function comboBar()
return { trackMode = "Combo Points", name = "Combo Points" }
end
local function runicPowerBar()
return { trackMode = "Runic Power", name = "Runic Power" }
end
local function soulShardsBar()
return { trackMode = "Soul Shards", name = "Soul Shards" }
end
-- Resource bars need requireClass set so copying a preset across characters
-- doesn't leak, say, rune bars onto a Rogue's UI.
local RESOURCE_MODES = {
["Combo Points"] = true,
["Runes"] = true,
["Runic Power"] = true,
["Soul Shards"] = true,
}
-- ----------------------------------------------------------------------------
-- Preset data. Each class has 2–4 groups; each group has ~4–8 bars.
-- ----------------------------------------------------------------------------
ns.ClassPresets = {
-----------------------------------------------------------------
DEATHKNIGHT = {
description = "Death Knight: cooldowns, diseases, runes, runic power",
groups = {
{
name = "DK Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(48707, "Anti-Magic Shell"),
cd(48792, "Icebound Fortitude"),
cd(47568, "Empower Rune Weapon"),
cd(49028, "Dancing Rune Weapon"),
cd(55233, "Vampiric Blood"),
cd(49222, "Bone Shield"),
},
},
{
name = "Diseases",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
debuff("Frost Fever"),
debuff("Blood Plague"),
},
},
{
name = "Runes",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 2,
width = 240,
bars = {
runeBar(1), runeBar(2),
runeBar(3), runeBar(4),
runeBar(5), runeBar(6),
},
},
{
name = "Runic Power",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 },
columns = 1,
bars = {
runicPowerBar(),
},
},
},
specs = {
[1] = { name = "Blood", groups = {
{ name = "Blood Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(55233, "Vampiric Blood"), cd(48792, "Icebound Fortitude"), cd(48707, "Anti-Magic Shell"),
cd(48982, "Rune Tap"), cd(49005, "Mark of Blood"), cd(49222, "Bone Shield"),
}},
{ name = "Diseases", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
debuff("Frost Fever"), debuff("Blood Plague"),
}},
{ name = "Runes", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 2, width = 240, bars = {
runeBar(1), runeBar(2), runeBar(3), runeBar(4), runeBar(5), runeBar(6),
}},
{ name = "Runic Power", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { runicPowerBar() }},
}},
[2] = { name = "Frost", groups = {
{ name = "Frost Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(51271, "Unbreakable Armor"), cd(48792, "Icebound Fortitude"), cd(48707, "Anti-Magic Shell"),
cd(47568, "Empower Rune Weapon"), cd(49039, "Lichborne"),
}},
{ name = "Frost Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Rime"), proc("Killing Machine"),
debuff("Frost Fever"), debuff("Blood Plague"),
}},
{ name = "Runes", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 2, width = 240, bars = {
runeBar(1), runeBar(2), runeBar(3), runeBar(4), runeBar(5), runeBar(6),
}},
{ name = "Runic Power", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { runicPowerBar() }},
}},
[3] = { name = "Unholy", groups = {
{ name = "Unholy Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(49222, "Bone Shield"), cd(51052, "Anti-Magic Zone"), cd(47568, "Empower Rune Weapon"),
cd(49206, "Summon Gargoyle"), cd(48707, "Anti-Magic Shell"),
}},
{ name = "Unholy Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Cinderglacier"), debuff("Unholy Blight"),
debuff("Frost Fever"), debuff("Blood Plague"),
}},
{ name = "Runes", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 2, width = 240, bars = {
runeBar(1), runeBar(2), runeBar(3), runeBar(4), runeBar(5), runeBar(6),
}},
{ name = "Runic Power", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { runicPowerBar() }},
}},
},
},
-----------------------------------------------------------------
DRUID = {
description = "Druid: cooldowns, procs, DoTs, core buffs",
groups = {
{
name = "Druid Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(22812, "Barkskin"),
cd(29166, "Innervate"),
cd(50334, "Berserk"),
cd(61336, "Survival Instincts"),
cd(22842, "Frenzied Regeneration"),
cd(48477, "Rebirth"),
},
},
{
name = "Druid Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Eclipse (Solar)"),
proc("Eclipse (Lunar)"),
proc("Nature's Grace"),
proc("Predator's Swiftness"),
proc("Clearcasting", "Omen of Clarity"),
proc("Owlkin Frenzy"),
},
},
{
name = "Target DoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Moonfire"),
debuff("Insect Swarm"),
debuff("Rake"),
debuff("Rip"),
},
},
{
name = "Self HoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -120 },
columns = 1,
bars = {
buff("Rejuvenation"),
buff("Lifebloom"),
buff("Regrowth"),
},
},
},
specs = {
[1] = { name = "Balance", groups = {
{ name = "Balance Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(22812, "Barkskin"), cd(29166, "Innervate"), cd(48505, "Starfall"), cd(33831, "Force of Nature"),
}},
{ name = "Balance Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Eclipse (Solar)"), proc("Eclipse (Lunar)"), proc("Nature's Grace"), proc("Owlkin Frenzy"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Moonfire"), debuff("Insect Swarm"),
}},
}},
[2] = { name = "Feral", groups = {
{ name = "Feral Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(50334, "Berserk"), cd(50213, "Tiger's Fury"), cd(61336, "Survival Instincts"), cd(22812, "Barkskin"),
}},
{ name = "Feral Buffs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
buff("Savage Roar"), proc("Predator's Swiftness"), proc("Clearcasting", "Omen of Clarity"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Rake"), debuff("Rip"), debuff("Mangle"), debuff("Lacerate"),
}},
{ name = "Combo Points", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { comboBar() }},
}},
[3] = { name = "Restoration", groups = {
{ name = "Resto Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(22812, "Barkskin"), cd(29166, "Innervate"), cd(17116, "Nature's Swiftness"),
cd(18562, "Swiftmend"), cd(48447, "Tranquility"),
}},
{ name = "Resto Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Clearcasting", "Omen of Clarity"), proc("Nature's Grace"),
}},
{ name = "HoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
buff("Lifebloom"), buff("Rejuvenation"), buff("Regrowth"), buff("Wild Growth"),
}},
}},
},
},
-----------------------------------------------------------------
HUNTER = {
description = "Hunter: cooldowns, procs, sting DoTs",
groups = {
{
name = "Hunter Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(19263, "Deterrence"),
cd(23989, "Readiness"),
cd(3045, "Rapid Fire"),
cd(34477, "Misdirection"),
cd(53271, "Master's Call"),
cd(19574, "Bestial Wrath"),
},
},
{
name = "Hunter Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Improved Steady Shot"),
proc("Lock and Load"),
proc("Rapid Killing"),
},
},
{
name = "Target DoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Serpent Sting"),
debuff("Scorpid Sting"),
debuff("Black Arrow"),
debuff("Wyvern Sting"),
},
},
},
specs = {
[1] = { name = "Beast Mastery", groups = {
{ name = "BM Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(19574, "Bestial Wrath"), cd(3045, "Rapid Fire"), cd(19577, "Intimidation"),
cd(23989, "Readiness"), cd(34477, "Misdirection"),
}},
{ name = "BM Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Cobra Strikes"), proc("Rapid Killing"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Serpent Sting"),
}},
}},
[2] = { name = "Marksmanship", groups = {
{ name = "MM Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(3045, "Rapid Fire"), cd(23989, "Readiness"), cd(34477, "Misdirection"), cd(34490, "Silencing Shot"),
}},
{ name = "MM Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Improved Steady Shot"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Serpent Sting"), debuff("Chimera Shot"),
}},
}},
[3] = { name = "Survival", groups = {
{ name = "SV Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(3045, "Rapid Fire"), cd(23989, "Readiness"), cd(34477, "Misdirection"),
}},
{ name = "SV Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Lock and Load"), proc("Rapid Killing"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Serpent Sting"), debuff("Black Arrow"), debuff("Explosive Shot"),
}},
}},
},
},
-----------------------------------------------------------------
MAGE = {
description = "Mage: cooldowns, procs, self buffs",
groups = {
{
name = "Mage Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(12051, "Evocation"),
cd(45438, "Ice Block"),
cd(66, "Invisibility"),
cd(12472, "Icy Veins"),
cd(12042, "Arcane Power"),
cd(11129, "Combustion"),
},
},
{
name = "Mage Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Clearcasting"),
proc("Brain Freeze"),
proc("Fingers of Frost"),
proc("Hot Streak"),
proc("Missile Barrage"),
proc("Blazing Speed"),
},
},
{
name = "Target DoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Ignite"),
debuff("Pyroblast"),
debuff("Living Bomb"),
},
},
},
specs = {
[1] = { name = "Arcane", groups = {
{ name = "Arcane Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(12042, "Arcane Power"), cd(12043, "Presence of Mind"), cd(12051, "Evocation"),
cd(12472, "Icy Veins"), cd(55342, "Mirror Image"),
}},
{ name = "Arcane Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Missile Barrage"), proc("Clearcasting"),
}},
}},
[2] = { name = "Fire", groups = {
{ name = "Fire Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(11129, "Combustion"), cd(12472, "Icy Veins"), cd(12051, "Evocation"), cd(55342, "Mirror Image"),
}},
{ name = "Fire Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Hot Streak"), proc("Impact"), proc("Firestarter"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Living Bomb"), debuff("Ignite"), debuff("Pyroblast"),
}},
}},
[3] = { name = "Frost", groups = {
{ name = "Frost Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(12472, "Icy Veins"), cd(11958, "Cold Snap"), cd(12051, "Evocation"),
cd(55342, "Mirror Image"), cd(31687, "Summon Water Elemental"),
}},
{ name = "Frost Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Brain Freeze"), proc("Fingers of Frost"), proc("Clearcasting"),
}},
{ name = "Frost Buffs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
buff("Ice Barrier"),
}},
}},
},
},
-----------------------------------------------------------------
PALADIN = {
description = "Paladin: cooldowns, procs, judgement",
groups = {
{
name = "Paladin Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(642, "Divine Shield"),
cd(498, "Divine Protection"),
cd(31884, "Avenging Wrath"),
cd(48788, "Lay on Hands"),
cd(10308, "Hammer of Justice"),
cd(1044, "Hand of Freedom"),
cd(6940, "Hand of Sacrifice"),
},
},
{
name = "Paladin Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("The Art of War"),
proc("Infusion of Light"),
proc("Sacred Shield"),
proc("Light's Grace"),
},
},
{
name = "Target Debuffs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Repentance"),
debuff("Judgement of Wisdom"),
debuff("Judgement of Justice"),
debuff("Judgement of Righteousness"),
},
},
},
specs = {
[1] = { name = "Holy", groups = {
{ name = "Holy Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(20216, "Divine Favor"), cd(31821, "Aura Mastery"), cd(54428, "Divine Plea"),
cd(48788, "Lay on Hands"), cd(642, "Divine Shield"), cd(6940, "Hand of Sacrifice"),
}},
{ name = "Holy Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Infusion of Light"), proc("Light's Grace"), proc("Sacred Shield"),
buff("Beacon of Light"),
}},
}},
[2] = { name = "Protection", groups = {
{ name = "Prot Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(498, "Divine Protection"), cd(31884, "Avenging Wrath"), cd(54428, "Divine Plea"),
cd(48952, "Holy Shield"), cd(853, "Hammer of Justice"),
}},
{ name = "Prot Buffs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
buff("Holy Shield"), proc("Sacred Duty"),
debuff("Judgement of Wisdom"), debuff("Judgement of Justice"),
}},
}},
[3] = { name = "Retribution", groups = {
{ name = "Ret Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(31884, "Avenging Wrath"), cd(54428, "Divine Plea"),
cd(48806, "Hammer of Wrath"), cd(853, "Hammer of Justice"),
}},
{ name = "Ret Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("The Art of War"), debuff("Judgement of Wisdom"),
}},
}},
},
},
-----------------------------------------------------------------
PRIEST = {
description = "Priest: cooldowns, procs, HoTs",
groups = {
{
name = "Priest Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(586, "Fade"),
cd(10890, "Psychic Scream"),
cd(14751, "Inner Focus"),
cd(6346, "Fear Ward"),
cd(47788, "Guardian Spirit"),
cd(33206, "Pain Suppression"),
cd(10060, "Power Infusion"),
},
},
{
name = "Priest Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Borrowed Time"),
proc("Serendipity"),
proc("Surge of Light"),
proc("Holy Concentration"),
},
},
{
name = "Target DoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Shadow Word: Pain"),
debuff("Devouring Plague"),
debuff("Vampiric Touch"),
debuff("Mind Flay"),
},
},
{
name = "Self HoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -120 },
columns = 1,
bars = {
buff("Renew"),
buff("Power Word: Shield"),
buff("Weakened Soul"),
},
},
},
specs = {
[1] = { name = "Discipline", groups = {
{ name = "Disc Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(33206, "Pain Suppression"), cd(10060, "Power Infusion"), cd(14751, "Inner Focus"),
cd(6346, "Fear Ward"), cd(586, "Fade"),
}},
{ name = "Disc Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Borrowed Time"), buff("Power Word: Shield"), buff("Weakened Soul"),
buff("Prayer of Mending"),
}},
}},
[2] = { name = "Holy", groups = {
{ name = "Holy Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(47788, "Guardian Spirit"), cd(14751, "Inner Focus"), cd(6346, "Fear Ward"),
cd(64843, "Divine Hymn"), cd(64901, "Hymn of Hope"),
}},
{ name = "Holy Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Surge of Light"), proc("Serendipity"), proc("Holy Concentration"),
buff("Renew"), buff("Prayer of Mending"),
}},
}},
[3] = { name = "Shadow", groups = {
{ name = "Shadow Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(34433, "Shadowfiend"), cd(47585, "Dispersion"), cd(586, "Fade"), cd(10890, "Psychic Scream"),
}},
{ name = "Shadow DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
debuff("Shadow Word: Pain"), debuff("Vampiric Touch"),
debuff("Devouring Plague"), debuff("Mind Flay"),
}},
{ name = "Shadow Buffs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
buff("Vampiric Embrace"),
}},
}},
},
},
-----------------------------------------------------------------
ROGUE = {
description = "Rogue: cooldowns, bleeds, poisons, combo points",
groups = {
{
name = "Rogue Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(5277, "Evasion"),
cd(1766, "Kick"),
cd(2094, "Blind"),
cd(26889, "Vanish"),
cd(51690, "Killing Spree"),
cd(13750, "Adrenaline Rush"),
cd(51713, "Shadow Dance"),
cd(57934, "Tricks of the Trade"),
},
},
{
name = "Target Bleeds",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
debuff("Rupture"),
debuff("Garrote"),
debuff("Deadly Throw"),
debuff("Deadly Poison"),
debuff("Expose Armor"),
},
},
{
name = "Self Buffs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
buff("Slice and Dice"),
buff("Cold Blood"),
buff("Cheating Death"),
},
},
{
name = "Combo Points",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 },
columns = 1,
bars = {
comboBar(),
},
},
},
specs = {
[1] = { name = "Assassination", groups = {
{ name = "Assa Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(14177, "Cold Blood"), cd(26889, "Vanish"), cd(57934, "Tricks of the Trade"),
cd(5277, "Evasion"), cd(1766, "Kick"), cd(2094, "Blind"),
}},
{ name = "Target DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
debuff("Rupture"), debuff("Garrote"), debuff("Deadly Poison"),
}},
{ name = "Self Buffs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
buff("Slice and Dice"), buff("Hunger For Blood"), buff("Envenom"),
}},
{ name = "Combo Points", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { comboBar() }},
}},
[2] = { name = "Combat", groups = {
{ name = "Combat Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(13750, "Adrenaline Rush"), cd(51690, "Killing Spree"), cd(13877, "Blade Flurry"),
cd(26889, "Vanish"), cd(57934, "Tricks of the Trade"), cd(5277, "Evasion"), cd(1766, "Kick"),
}},
{ name = "Maintenance", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
buff("Slice and Dice"), debuff("Rupture"),
}},
{ name = "Combo Points", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { comboBar() }},
}},
[3] = { name = "Subtlety", groups = {
{ name = "Sub Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(51713, "Shadow Dance"), cd(36554, "Shadowstep"), cd(14185, "Preparation"),
cd(26889, "Vanish"), cd(57934, "Tricks of the Trade"), cd(5277, "Evasion"), cd(1766, "Kick"),
}},
{ name = "Maintenance", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
buff("Slice and Dice"), debuff("Rupture"), debuff("Hemorrhage"),
}},
{ name = "Combo Points", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -60 }, columns = 1, bars = { comboBar() }},
}},
},
},
-----------------------------------------------------------------
SHAMAN = {
description = "Shaman: cooldowns, totems, procs",
groups = {
{
name = "Shaman Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(2894, "Fire Elemental Totem"),
cd(30823, "Shamanistic Rage"),
cd(51533, "Feral Spirit"),
cd(51514, "Hex"),
cd(57994, "Wind Shear"),
cd(16190, "Mana Tide Totem"),
cd(55198, "Tidal Force"),
},
},
{
name = "Shaman Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Clearcasting", "Elemental Focus"),
proc("Maelstrom Weapon"),
proc("Tidal Waves"),
},
},
{
name = "Totems",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
{ trackMode = "Totem", spellId = 1, name = "Fire Totem" },
{ trackMode = "Totem", spellId = 2, name = "Earth Totem" },
{ trackMode = "Totem", spellId = 3, name = "Water Totem" },
{ trackMode = "Totem", spellId = 4, name = "Air Totem" },
},
},
},
specs = {
[1] = { name = "Elemental", groups = {
{ name = "Ele Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(16166, "Elemental Mastery"), cd(51490, "Thunderstorm"), cd(2894, "Fire Elemental Totem"),
cd(51514, "Hex"), cd(57994, "Wind Shear"),
}},
{ name = "Ele Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Clearcasting", "Elemental Focus"), debuff("Flame Shock"),
}},
{ name = "Totems", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
{ trackMode = "Totem", spellId = 1, name = "Fire Totem" },
{ trackMode = "Totem", spellId = 2, name = "Earth Totem" },
{ trackMode = "Totem", spellId = 3, name = "Water Totem" },
{ trackMode = "Totem", spellId = 4, name = "Air Totem" },
}},
}},
[2] = { name = "Enhancement", groups = {
{ name = "Enh Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(51533, "Feral Spirit"), cd(30823, "Shamanistic Rage"), cd(2894, "Fire Elemental Totem"),
cd(51514, "Hex"), cd(57994, "Wind Shear"),
}},
{ name = "Enh Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Maelstrom Weapon"), debuff("Flame Shock"),
}},
{ name = "Totems", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
{ trackMode = "Totem", spellId = 1, name = "Fire Totem" },
{ trackMode = "Totem", spellId = 2, name = "Earth Totem" },
{ trackMode = "Totem", spellId = 3, name = "Water Totem" },
{ trackMode = "Totem", spellId = 4, name = "Air Totem" },
}},
}},
[3] = { name = "Restoration", groups = {
{ name = "Resto Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(16190, "Mana Tide Totem"), cd(55198, "Tidal Force"), cd(16188, "Nature's Swiftness"),
cd(51514, "Hex"), cd(57994, "Wind Shear"),
}},
{ name = "Resto Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Tidal Waves"), proc("Clearcasting", "Elemental Focus"),
buff("Riptide"), buff("Earth Shield"),
}},
{ name = "Totems", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
{ trackMode = "Totem", spellId = 1, name = "Fire Totem" },
{ trackMode = "Totem", spellId = 2, name = "Earth Totem" },
{ trackMode = "Totem", spellId = 3, name = "Water Totem" },
{ trackMode = "Totem", spellId = 4, name = "Air Totem" },
}},
}},
},
},
-----------------------------------------------------------------
WARLOCK = {
description = "Warlock: cooldowns, procs, DoTs, soul shards",
groups = {
{
name = "Warlock Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(47241, "Metamorphosis"),
cd(29858, "Soulshatter"),
cd(47883, "Soulstone"),
cd(17928, "Howl of Terror"),
cd(18708, "Fel Domination"),
cd(30283, "Shadowfury"),
},
},
{
name = "Warlock Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Backlash"),
proc("Empowered Imp"),
proc("Nightfall"),
proc("Molten Core"),
proc("Decimation"),
proc("Backdraft"),
},
},
{
name = "Target DoTs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Unstable Affliction"),
debuff("Haunt"),
debuff("Curse of Agony"),
debuff("Corruption"),
debuff("Immolate"),
debuff("Curse of the Elements"),
},
},
{
name = "Soul Shards",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -120 },
columns = 1,
bars = {
soulShardsBar(),
},
},
},
specs = {
[1] = { name = "Affliction", groups = {
{ name = "Aff Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(29858, "Soulshatter"), cd(30283, "Shadowfury"),
}},
{ name = "Aff Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Nightfall"), proc("Eradication"),
}},
{ name = "DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Corruption"), debuff("Unstable Affliction"), debuff("Curse of Agony"), debuff("Haunt"),
}},
{ name = "Soul Shards", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -120 }, columns = 1, bars = { soulShardsBar() }},
}},
[2] = { name = "Demonology", groups = {
{ name = "Demo Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(47241, "Metamorphosis"), cd(47193, "Demonic Empowerment"),
cd(18708, "Fel Domination"), cd(29858, "Soulshatter"),
}},
{ name = "Demo Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Decimation"), proc("Molten Core"),
}},
{ name = "DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Corruption"), debuff("Immolate"), debuff("Curse of Doom"),
}},
{ name = "Soul Shards", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -120 }, columns = 1, bars = { soulShardsBar() }},
}},
[3] = { name = "Destruction", groups = {
{ name = "Destro Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(30283, "Shadowfury"), cd(29858, "Soulshatter"), cd(50796, "Chaos Bolt"),
}},
{ name = "Destro Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Backdraft"), proc("Backlash"), proc("Empowered Imp"),
}},
{ name = "DoTs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Immolate"), debuff("Corruption"), debuff("Conflagrate"),
}},
{ name = "Soul Shards", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = -120 }, columns = 1, bars = { soulShardsBar() }},
}},
},
},
-----------------------------------------------------------------
WARRIOR = {
description = "Warrior: cooldowns, procs, stance buffs",
groups = {
{
name = "Warrior Cooldowns",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 },
columns = 1,
bars = {
cd(871, "Shield Wall"),
cd(12975, "Last Stand"),
cd(1719, "Recklessness"),
cd(20230, "Retaliation"),
cd(55694, "Enraged Regeneration"),
cd(676, "Disarm"),
cd(18499, "Berserker Rage"),
cd(1161, "Challenging Shout"),
},
},
{
name = "Warrior Procs",
position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 },
columns = 1,
bars = {
proc("Bloodsurge"),
proc("Sudden Death"),
proc("Sword and Board"),
proc("Taste for Blood"),
},
},
{
name = "Target Debuffs",
position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 },
columns = 1,
bars = {
debuff("Sunder Armor"),
debuff("Hamstring"),
debuff("Mortal Strike"),
debuff("Shockwave"),
debuff("Devastate"),
},
},
},
specs = {
[1] = { name = "Arms", groups = {
{ name = "Arms Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(46924, "Bladestorm"), cd(1719, "Recklessness"), cd(64382, "Shattering Throw"),
cd(18499, "Berserker Rage"), cd(55694, "Enraged Regeneration"),
}},
{ name = "Arms Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Sudden Death"), proc("Taste for Blood"),
}},
{ name = "Target Debuffs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Rend"), debuff("Mortal Strike"), debuff("Hamstring"),
}},
}},
[2] = { name = "Fury", groups = {
{ name = "Fury Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(12292, "Death Wish"), cd(1719, "Recklessness"), cd(18499, "Berserker Rage"),
cd(55694, "Enraged Regeneration"), cd(60970, "Heroic Fury"),
}},
{ name = "Fury Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Bloodsurge"), buff("Enrage"), buff("Flurry"),
}},
{ name = "Target Debuffs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Hamstring"),
}},
}},
[3] = { name = "Protection", groups = {
{ name = "Prot Cooldowns", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = 120 }, columns = 1, bars = {
cd(871, "Shield Wall"), cd(12975, "Last Stand"), cd(2565, "Shield Block"),
cd(23920, "Spell Reflection"), cd(1161, "Challenging Shout"),
cd(18499, "Berserker Rage"), cd(55694, "Enraged Regeneration"),
}},
{ name = "Prot Procs", position = { point = "CENTER", relativePoint = "CENTER", x = -240, y = -120 }, columns = 1, bars = {
proc("Sword and Board"), buff("Shield Block"),
}},
{ name = "Target Debuffs", position = { point = "CENTER", relativePoint = "CENTER", x = 240, y = 120 }, columns = 1, bars = {
debuff("Sunder Armor"), debuff("Devastate"), debuff("Thunder Clap"),
}},
}},
},
},
}
-- ----------------------------------------------------------------------------
-- MakeFullBar: expand a partial-bar table to a complete BarWarden bar,
-- filling in all default fields. Resource bars get requireClass set to
-- `classToken` so they can't accidentally leak onto other classes.
-- ----------------------------------------------------------------------------
local function MakeFullBar(partial, classToken)
local requireClass
if RESOURCE_MODES[partial.trackMode] then
requireClass = classToken
end
return {
enabled = true,
trackMode = partial.trackMode,
spellName = partial.spellName,
spellId = partial.spellId,
itemId = partial.itemId,
name = partial.name or "",
unit = partial.unit,
onlyMine = partial.onlyMine ~= false,
conditions = {
combatOnly = false,
outOfCombatOnly = false,
requireBuff = nil,
requireClass = requireClass,
healthBelow = nil,
inGroup = false,
inRaid = false,
hideWhileMounted = false,
hideWhileResting = false,
hideInVehicle = false,
onlyInInstance = false,
hideWhenInactive = partial.hideWhenInactive == true,
showEmpty = true,
},
display = {},
}
end
-- ----------------------------------------------------------------------------
-- BuildGroupFromPreset: shared helper that turns a preset group spec into a
-- full runtime group (shape matches ns.db.frames[i]). `positionIndex` is
-- used for the fallback position if the preset didn't specify one.
-- ----------------------------------------------------------------------------
local function BuildGroupFromPreset(groupPreset, positionIndex, classToken)
local defaultPos = { point = "CENTER", relativePoint = "CENTER", x = 0, y = -(positionIndex * 100) }
local group = {
name = groupPreset.name or ("Group " .. positionIndex),
enabled = true,