-
Notifications
You must be signed in to change notification settings - Fork 0
/
BigDebuffs.lua
1723 lines (1532 loc) · 57.9 KB
/
BigDebuffs.lua
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
-- BigDebuffs by Jordon
-- Backported and general improvements by Konjunktur
local addonName, addon = ...
BigDebuffs = LibStub("AceAddon-3.0"):NewAddon("BigDebuffs", "AceEvent-3.0", "AceHook-3.0", "AceTimer-3.0")
-- Defaults
local defaults = {
profile = {
raidFrames = {
maxDebuffs = 1,
anchor = "INNER",
enabled = true,
cooldownCount = true,
hideBliz = true,
redirectBliz = false,
increaseBuffs = false,
cc = 50,
dispellable = {
cc = 60,
roots = 50,
},
interrupts = 55,
roots = 40,
warning = 40,
default = 30,
special = 30,
pve = 50,
warningList = {
[88611] = true, -- Smoke Bomb
[81261] = true, -- Solar Beam
[30108] = true, -- Unstable Affliction
[34914] = true, -- Vampiric Touch
},
},
unitFrames = {
enabled = true,
cooldownCount = true,
tooltips = true,
player = {
enabled = true,
anchor = "auto",
size = 50,
cdMod = 9,
},
focus = {
enabled = true,
anchor = "auto",
size = 50,
cdMod = 9,
},
target = {
enabled = true,
anchor = "auto",
size = 50,
cdMod = 9,
},
pet = {
enabled = true,
anchor = "auto",
size = 50,
cdMod = 9,
},
party = {
enabled = true,
anchor = "auto",
size = 50,
cdMod = 9,
},
arena = {
enabled = true,
anchor = "auto",
size = 50,
cdMod = 9,
},
cc = true,
interrupts = true,
immunities = true,
immunities_spells = true,
buffs_defensive = true,
buffs_offensive = true,
buffs_other = true,
roots = true,
},
priority = {
immunities = 80,
immunities_spells = 70,
cc = 60,
interrupts = 55,
buffs_defensive = 50,
buffs_offensive = 40,
buffs_other = 30,
roots = 20,
special = 19,
},
spells = {},
}
}
-- Show one of these when a big debuff is displayed
BigDebuffs.WarningDebuffs = {
88611, -- Smoke Bomb
81261, -- Solar Beam
30108, --[=[ Unstable Affliction
233490, -- Unstable Affliction
233496, -- Unstable Affliction
233497, -- Unstable Affliction
233498, -- Unstable Affliction
233499, -- Unstable Affliction]=]
34914, -- Vampiric Touch
}
BigDebuffs.Spells = {
-- Interrupts
[93985] = { type = "interrupts", duration = 4 }, -- Skull Bash
-- [80964] = { type = "interrupts", duration = 4 }, -- Skull Bash (Bear Form)
-- [80965] = { type = "interrupts", duration = 4 }, -- Skull Bash (Cat Form)
-- [106839] = { type = "interrupts", duration = 4 }, -- Skull Bash (Feral)
[102060] = { type = "interrupts", duration = 4 },-- Disrupting Shout
[26679] = { type = "interrupts", duration = 6 }, -- Deadly Throw
[24259] = { type = "interrupts", duration = 6 }, -- Spell Lock (Grimoire of Sacrifice)
[115782] = { type = "interrupts", duration = 6 },-- Optical Blast (Observer)
[97547] = { type = "interrupts", duration = 5 }, -- Solar Beam
[50479] = { type = "interrupts", duration = 2 }, -- Nether Shock (pet)
[50318] = { type = "interrupts", duration = 4 }, -- Serenity Dust (pet)
[26090] = { type = "interrupts", duration = 2 }, -- Pummel (pet)
[34490] = { type = "interrupts", duration = 3 }, -- Silencing Shot (Hunter)
[113288] = { type = "interrupts", duration = 4 }, -- Solar Beam (shaman)
[1766] = { type = "interrupts", duration = 5 }, -- Kick (Rogue)
[2139] = { type = "interrupts", duration = 6 }, -- Counterspell (Mage)
[6552] = { type = "interrupts", duration = 4 }, -- Pummel (Warrior)
[19647] = { type = "interrupts", duration = 6 }, -- Spell Lock (Warlock)
[47528] = { type = "interrupts", duration = 3 }, -- Mind Freeze (Death Knight)
[57994] = { type = "interrupts", duration = 3 }, -- Wind Shear (Shaman)
[91802] = { type = "interrupts", duration = 2 }, -- Shambling Rush (Death Knight pet)
[96231] = { type = "interrupts", duration = 4 }, -- Rebuke (Paladin)
[115781] = { type = "interrupts", duration = 6 }, -- Optical Blast (Warlock)
[116705] = { type = "interrupts", duration = 4 }, -- Spear Hand Strike (Monk)
-- [116709] = { type = "interrupts", duration = 2 },-- Spear Hand Strike (silence effect)
[132409] = { type = "interrupts", duration = 6 }, -- Spell Lock (Warlock)
[147362] = { type = "interrupts", duration = 3 }, -- Counter Shot (Hunter)
[31935] = { type = "interrupts", duration = 3 }, -- Avengers Shield (Paladin)
-- Death Knight
[47476] = { type = "cc" }, -- Strangulate
[48707] = { type = "immunities_spells" }, -- Anti-Magic Shell
[115018] = { type = "immunities" }, -- Desecrated Ground
[48792] = { type = "buffs_defensive" }, -- Icebound Fortitude
[49028] = { type = "buffs_offensive" }, -- Dancing Rune Weapon
[51271] = { type = "buffs_offensive" }, -- Pillar of Frost
[55233] = { type = "buffs_defensive" }, -- Vampiric Blood
[77606] = { type = "buffs_other" }, -- Dark Simulacrum
[91797] = { type = "cc" }, -- Monstrous Blow
[91800] = { type = "cc" }, -- Gnaw
[49039] = { type = "buffs_other" }, -- Lichborne
[108194] = { type = "cc" }, -- Asphyxiate
[53534] = { type = "roots" }, -- Chains of Ice
[91807] = { type = "roots" }, -- Shambling Rush
[96294] = { type = "roots" }, -- Chains of Ice (Chilblains)
[81256] = { type = "buffs_offensive" }, -- Dancing Rune Weapon
[49016] = { type = "buffs_offensive" }, -- Unholy Frenzy
[49222] = { type = "buffs_defensive" }, -- Bone Shield
[115001] = { type = "cc" }, -- Remorseless Winter
[145629] = { type = "buffs_defensive" }, -- Anti-Magic Zone
[73975] = { type = "buffs_other" }, -- Necrotic Wound
[51271] = { type = "buffs_other" }, -- Pillar of Frost
-- Druid
[99] = { type = "cc" }, -- Disorienting Roar
[2637] = { type = "cc" }, -- Hibernate
[113801] = { type = "cc" }, -- Bash (Force of Nature - Feral Treants)
[16689] = { type = "buffs_defensive" }, -- Nature's Grasp
[19975] = { type = "roots" }, -- Entangling Roots (Nature's Grasp)
[339] = { type = "roots" }, -- Entangling Roots
[113770] = { type = "roots" }, -- Entangling Roots (trents)
[102359] = { type = "roots" }, -- Mass Entanglement
[1850] = { type = "buffs_other" }, -- Dash
[5211] = { type = "cc" }, -- Mighty Bash
[5217] = { type = "buffs_offensive" }, -- Tiger's Fury
[22812] = { type = "buffs_defensive" }, -- Barkskin
[22842] = { type = "buffs_defensive" }, -- Frenzied Regeneration
[29166] = { type = "buffs_offensive" }, -- Innervate
[33891] = { type = "buffs_offensive" }, -- Incarnation: Tree of Life
[45334] = { type = "roots" }, -- Wild Charge
[61336] = { type = "buffs_defensive" }, -- Survival Instincts
[81261] = { type = "cc" }, -- Solar Beam
[102342] = { type = "buffs_defensive" }, -- Ironbark
[102543] = { type = "buffs_offensive" }, -- Incarnation: King of the Jungle
[102558] = { type = "buffs_offensive" }, -- Incarnation: Guardian of Ursoc
[102560] = { type = "buffs_offensive" }, -- Incarnation: Chosen of Elune
[106951] = { type = "buffs_offensive" }, -- Berserk
[106922] = { type = "buffs_defensive" }, -- Might of Ursoc
[132402] = { type = "buffs_defensive" }, -- Savage Defense
[108291] = { type = "buffs_defensive" }, -- Heart of the Wild
[108292] = { type = "buffs_defensive", parent = 108292, }, -- Heart of the Wild
[108293] = { type = "buffs_defensive", parent = 108292, }, -- Heart of the Wild
[108294] = { type = "buffs_defensive", parent = 108292, }, -- Heart of the Wild
[132158] = { type = "buffs_defensive" }, -- Nature's Swiftness
[113072] = { type = "buffs_defensive" }, -- Symbiosis: Might of Ursoc
[113306] = { type = "buffs_defensive" }, -- Symbiosis: Survival Instincts
[113075] = { type = "buffs_defensive" }, -- Symbiosis: Barkskin
[113278] = { type = "buffs_defensive" }, -- Symbiosis: Tranquillity
[113613] = { type = "buffs_defensive" }, -- Symbiosis: Growl
[122286] = { type = "buffs_defensive" }, -- Symbiosis: Savage Defense
[127361] = { type = "cc" }, -- Symbiosis: Bear Hug
[113506] = { type = "cc" }, -- Symbiosis: Cyclone
[113275] = { type = "roots" }, -- Symbiosis: Entangling roots
[110570] = { type = "immunities_spells" }, -- Symbiosis: Anti-Magic shell
[122285] = { type = "buffs_defensive" }, -- Symbiosis: Bone Shield
[110575] = { type = "buffs_defensive" }, -- Symbiosis: Icebound Fortitude
[110597] = { type = "buffs_defensive" }, -- Symbiosis: Feign Death
[126456] = { type = "buffs_defensive" }, -- Symbiosis: Fortifying Brew
[110717] = { type = "buffs_defensive" }, -- Symbiosis: Fear Ward
[110791] = { type = "buffs_defensive" }, -- Symbiosis: Evasion
[122291] = { type = "buffs_defensive" }, -- Symbiosis: Unending Resolve
[122292] = { type = "buffs_defensive" }, -- Symbiosis: Intervene
[110617] = { type = "immunities" }, -- Symbiosis: Deterrence
[110693] = { type = "roots" }, -- Symbiosis: Frost Nova
[110806] = { type = "buffs_other" }, -- Symbiosis: Spiritwalker's Grace
[126458] = { type = "cc" }, -- Symbiosis: Grapple Weapon
[110698] = { type = "cc" }, -- Symbiosis: Hammer of Justice
[113004] = { type = "cc" }, -- Symbiosis: Intimidating Roar
[113056] = { type = "cc" }, -- Intimidating Roar [Cowering in fear] (Warrior)
[110696] = { type = "immunities" }, -- Symbiosis: Ice Block
[110715] = { type = "immunities" }, -- Symbiosis: Dispersion
[110788] = { type = "immunities_spells" }, -- Symbiosis: Cloak of Shadows
[113002] = { type = "immunities_spells" }, -- Symbiosis: Spell Reflection
[110700] = { type = "immunities" }, -- Symbiosis: Divine Shield
[102355] = { type = "cc" }, -- Faerie Swarm (Slow/Disarm)
[33786] = { type = "cc" }, -- Cyclone
[22570] = { type = "cc" }, -- Maim
[9005] = { type = "cc" }, -- Pounce
[102546] = { type = "cc" }, -- Pounce (Incarnation)
[102795] = { type = "cc" }, -- Bear Hug
[114238] = { type = "cc" }, -- Fae Silence (Glyph of Fae Silence)
-- Hunter
[136] = { type = "buffs_defensive" }, -- Mend Pet
[1513] = { type = "cc" }, -- Scare Beast
[3045] = { type = "buffs_offensive" }, -- Rapid Fire
[3355] = { type = "cc" }, -- Freezing Trap
[5384] = { type = "buffs_defensive" }, -- Feign Death
[19386] = { type = "cc" }, -- Wyvern Sting
[19503] = { type = "cc" }, -- Scatter Shot
[19185] = { type = "roots" }, -- Entrapment
[64803] = { type = "roots" }, -- Entrapment
[128405] = { type = "roots" }, -- Narrow Escape
[19574] = { type = "buffs_offensive" }, -- Bestial Wrath
[51755] = { type = "buffs_defensive" }, -- Camouflage
[53480] = { type = "buffs_defensive" }, -- Roar of Sacrifice (Hunter Pet Skill)
[54216] = { type = "buffs_defensive" }, -- Master's Call
[62305] = { type = "buffs_defensive" }, -- Master's Call
[117526] = { type = "cc" }, -- Binding Shot Stun
[131894] = { type = "buffs_offensive" }, -- A Murder of Crows
[148467] = { type = "immunities" }, -- Deterrence
[19263] = { type = "immunities" }, -- Deterrence
-- Pets
[19577] = { type = "cc" }, -- Intimidation
[24394] = { type = "cc", parent = 19577 }, -- Intimidation
[90337] = { type = "cc" }, -- Bad Manner (Monkey)
[126246] = { type = "cc" }, -- Lullaby (Crane)
[126355] = { type = "cc" }, -- Paralyzing Quill (Porcupine)
[126423] = { type = "cc" }, -- Petrifying Gaze (Basilisk)
[50519] = { type = "cc" }, -- Sonic Blast (Bat)
[56626] = { type = "cc" }, -- Sting (Wasp)
[96201] = { type = "cc" }, -- Web Wrap (Shale Spider)
[50541] = { type = "cc" }, -- Clench (Scorpid)
[91644] = { type = "cc" }, -- Snatch (Bird of Prey)
[90327] = { type = "roots" }, -- Lock Jaw (Dog)
[50245] = { type = "roots" }, -- Pin (Crab)
[54706] = { type = "roots" }, -- Venom Web Spray (Silithid)
[4167] = { type = "roots" }, -- Web (Spider)
-- Mage
[66] = { type = "buffs_offensive" }, -- Invisibility
[110959] = { type = "buffs_offensive", parent = 66 }, -- Greater Invisibility
[110960] = { type = "buffs_offensive", parent = 66 }, -- Greater Invisibility
[113862] = { type = "buffs_defensive", parent = 66 }, -- Greater Invisibility -90%
[118] = { type = "cc" }, -- Polymorph
[28271] = { type = "cc", parent = 118 }, -- Polymorph Turtle
[28272] = { type = "cc", parent = 118 }, -- Polymorph Pig
[61025] = { type = "cc", parent = 118 }, -- Polymorph Serpent
[61305] = { type = "cc", parent = 118 }, -- Polymorph Black Cat
[61721] = { type = "cc", parent = 118 }, -- Polymorph Rabbit
[61780] = { type = "cc", parent = 118 }, -- Polymorph Turkey
[126819] = { type = "cc", parent = 118 }, -- Polymorph Porcupine
[122] = { type = "roots" }, -- Frost Nova
[33395] = { type = "roots", parent = 122 }, -- Freeze
[111340] = { type = "roots", parent = 122 }, -- Ice Ward
[11426] = { type = "buffs_defensive" }, -- Ice Barrier
[12042] = { type = "buffs_offensive" }, -- Arcane Power
[12043] = { type = "buffs_offensive" }, -- Presence of Mind
[12051] = { type = "buffs_offensive" }, -- Evocation
[12472] = { type = "buffs_offensive" }, -- Icy Veins
[131078] = { type = "buffs_offensive", paren = 12472 }, -- Icy Veins glyphed
[44572] = { type = "cc" }, -- Deep Freeze
[31661] = { type = "cc" }, -- Dragon's Breath
[102051] = { type = "cc" }, -- Frostjaw
[55021] = { type = "cc" }, -- Silenced - Improved Counterspell
[110909] = { type = "buffs_offensive", priority = true }, -- Alter Time
[45438] = { type = "immunities" }, -- Ice Block
[41425] = { type = "buffs_other" }, -- Hypothermia
[115760] = { type = "immunities_spells", parent = 45438 }, -- Glyph of the Ice Block
[80353] = { type = "buffs_offensive" }, -- Time Warp
[82691] = { type = "cc" }, -- Ring of Frost
[108839] = { type = "buffs_offensive" }, -- Ice Floes
[118271] = { type = "buffs_offensive" }, -- Combustion stun
[115610] = { type = "buffs_defensive" }, -- Temporal Shield
-- Monk
[115078] = { type = "cc" }, -- Paralysis
[120954] = { type = "buffs_defensive" }, -- Fortifying Brew
[116706] = { type = "roots" }, -- Disable
[123407] = { type = "roots" }, -- Spinning Fire Blossom
[116849] = { type = "buffs_defensive" }, -- Life Cocoon
[119381] = { type = "cc" }, -- Leg Sweep
[122278] = { type = "buffs_defensive" }, -- Dampen Harm
[122470] = { type = "buffs_defensive" }, -- Touch of Karma
[122783] = { type = "buffs_defensive" }, -- Diffuse Magic
[115176] = { type = "buffs_defensive" }, -- Zen Meditation
[115295] = { type = "buffs_defensive" }, -- Guard
[115308] = { type = "buffs_defensive" }, -- Elusive Brew
[137562] = { type = "buffs_defensive" }, -- Nimble Brew
[126451] = { type = "cc" }, -- Clash
[119392] = { type = "cc" }, -- Charging Ox Wave
[120086] = { type = "cc" }, -- Fists of Fury
[123393] = { type = "cc" }, -- Breath of Fire (Glyph of Breath of Fire)
[117368] = { type = "cc" }, -- Grapple Weapon
[140023] = { type = "buffs_defensive" }, -- Ring of Peace
[137461] = { type = "cc" }, -- Disarmed (Ring of Peace)
[137460] = { type = "cc" }, -- Silenced (Ring of Peace)
[131523] = { type = "immunities_spells" }, -- Zen Meditation
-- Paladin
[498] = { type = "buffs_defensive" }, -- Divine Protection
[642] = { type = "immunities" }, -- Divine Shield
[853] = { type = "cc" }, -- Hammer of Justice
[105593] = { type = "cc", parent = 853 }, -- Fist of Justice
[1022] = { type = "buffs_defensive" }, -- Hand of Protection
[498] = { type = "buffs_defensive" }, -- Divine Protection
[1044] = { type = "buffs_defensive" }, -- Hand of Freedom
[6940] = { type = "buffs_defensive" }, -- Hand of Sacrifice
[20066] = { type = "cc" }, -- Repentance
[31821] = { type = "buffs_defensive" }, -- Devotion Aura
[31850] = { type = "buffs_defensive" }, -- Ardent Defender
[31884] = { type = "buffs_offensive" }, -- Avenging Wrath
[31842] = { type = "buffs_offensive" }, -- Divine Favor
[31935] = { type = "cc" }, -- Avenger's Shield
[10326] = { type = "cc" }, -- Turn Evil
[145067]= { type = "cc" }, -- Turn Evil (Evil is a Point of View)
[86659] = { type = "buffs_defensive" }, -- Guardian of Ancient Kings
[105809] = { type = "buffs_offensive" }, -- Holy Avenger
[115750] = { type = "cc" }, -- Blinding Light
[105421] = { type = "cc", parent = 115750 }, -- Blinding Light
[115752] = { type = "cc", parent = 115750 }, -- Blinding Light (Glyph of Blinding Light)
[119072] = { type = "cc" }, -- Holy Wrath
-- Priest
[586] = { type = "buffs_defensive" }, -- Fade
[605] = { type = "cc", priority = true }, -- Dominate Mind
[6346] = { type = "buffs_defensive" }, -- Fear Ward
[8122] = { type = "cc" }, -- Psychic Scream
[64044] = { type = "cc" }, -- Psychic Horror
[64058] = { type = "cc" }, -- Psychic Horror Disarm
[113792]= { type = "cc" }, -- Psychic Terror (Psyfiend)
[9484] = { type = "cc" }, -- Shackle Undead
[10060] = { type = "buffs_offensive" }, -- Power Infusion
[15487] = { type = "cc" }, -- Silence
[27827] = { type = "buffs_defensive" }, -- Spirit of Redemption
[33206] = { type = "buffs_defensive" }, -- Pain Suppression
[47585] = { type = "buffs_defensive" }, -- Dispersion
[47788] = { type = "buffs_defensive" }, -- Guardian Spirit
[64843] = { type = "buffs_defensive" }, -- Divine Hymn
[64901] = { type = "buffs_defensive" }, -- Hymn of Hope
[81700] = { type = "buffs_defensive" }, -- Archangel
[81782] = { type = "buffs_defensive" }, -- Power Word: Barrier
[64904] = { type = "buffs_defensive" }, -- Hymn of Hope cast?
[87204] = { type = "cc" }, -- Sin and Punishment
[88625] = { type = "cc" }, -- Holy Word: Chastise
[96267] = { type = "buffs_defensive" }, -- Inner Focus
[114239] = { type = "immunities_spells" }, -- Phantasm
[87194] = { type = "roots" }, -- Glyph of Mind Blast
[114404] = { type = "roots" }, -- Void Tendril's Grasp
-- Rogue
[408] = { type = "cc" }, -- Kidney Shot
[1330] = { type = "cc" }, -- Garrote - Silence
[1776] = { type = "cc" }, -- Gouge
[1833] = { type = "cc" }, -- Cheap Shot
[1966] = { type = "buffs_defensive" }, -- Feint
[2094] = { type = "cc" }, -- Blind
[5277] = { type = "buffs_defensive" }, -- Evasion
[6770] = { type = "cc" }, -- Sap
[113953] = { type = "cc" }, -- Paralysis (Paralytic Poison)
[13750] = { type = "buffs_offensive" }, -- Adrenaline Rush
[31224] = { type = "immunities_spells" }, -- Cloak of Shadows
[51690] = { type = "buffs_offensive" }, -- Killing Spree
[51713] = { type = "buffs_other" }, -- Shadow Dance
[51722] = { type = "cc" }, -- Dismantle
[115197] = { type = "roots" }, -- Partial Paralysis
[57933] = { type = "buffs_offensive" }, -- Tricks +15% dmg
[74001] = { type = "buffs_defensive" }, -- Combat Readiness
[79140] = { type = "buffs_offensive" }, -- Vendetta
[88611] = { type = "cc" }, -- Smoke Bomb
[121471] = { type = "buffs_offensive" }, -- Shadow Blades
[114018] = { type = "buffs_defensive" }, -- Shroud of Concealment
[45182] = { type = "buffs_defensive" }, -- Cheating Death
-- Shaman
[2825] = { type = "buffs_offensive" }, -- Bloodlust
[32182] = { type = "buffs_offensive", parent = 2825 }, -- Heroism
[51514] = { type = "cc" }, -- Hex
[79206] = { type = "buffs_other" }, -- Spiritwalker's Grace 60 * OTHER
[30823] = { type = "buffs_defensive" }, -- Shamanistic Rage
[108281] = { type = "buffs_defensive" }, -- Ancestral Guidance
[16166] = { type = "buffs_offensive" }, -- Elemental Mastery
[120676] = { type = "buffs_offensive" }, -- Stormlash Totem Effect
[64695] = { type = "roots" }, -- Earthgrab Totem
[63685] = { type = "roots" }, -- Freeze (Frozen Power)
[8178] = { type = "immunities_spells" }, -- Grounding Totem Effect
[114896] = { type = "buffs_defensive" }, -- Windwalk totem Effect
[76780] = { type = "cc" }, -- Bind Elemental
[77505] = { type = "cc" }, -- Earthquake (Stun)
[98007] = { type = "buffs_defensive" }, -- Spirit Link Totem
[98008] = { type = "buffs_defensive" }, -- Spirit Link Totem
[108271] = { type = "buffs_defensive" }, -- Astral Shift
[114050] = { type = "buffs_defensive" }, -- Ascendance (Elemental)
[114051] = { type = "buffs_offensive", parent = 114050 }, -- Ascendance (Enhancement)
[114052] = { type = "buffs_defensive", parent = 114050 }, -- Ascendance (Restoration)
[118345] = { type = "cc" }, -- Pulverize
[118905] = { type = "cc" }, -- Static Charge
[113287] = { type = "cc" }, -- Solar Beam (Symbiosis)
[114893] = { type = "buffs_defensive" }, -- Stone Bulwark Totem
[16188] = { type = "buffs_defensive" }, -- Ancestral Swiftness
-- Warlock
[710] = { type = "cc" }, -- Banish
[5484] = { type = "cc" }, -- Howl of Terror
[6358] = { type = "cc" }, -- Seduction
[115268] = { type = "cc", parent = 6358 }, -- Mesmerize
[132412] = { type = "cc", parent = 6358 }, -- Seduction (Grimoire of Sacrifice)
[6789] = { type = "cc" }, -- Mortal Coil
[111397] = { type = "buffs_defensive" }, -- Blood Horror (buff)
[137143] = { type = "cc" }, -- Blood Horror (cc)
[20707] = { type = "buffs_defensive" }, -- Soulstone
[22703] = { type = "cc" }, -- Infernal Awakening
[30283] = { type = "cc" }, -- Shadowfury
[89751] = { type = "buffs_offensive" }, -- Felstorm
[115831] = { type = "buffs_offensive", parent = 89751 }, -- Wrathstorm
[89766] = { type = "cc" }, -- Axe Toss
[118093] = { type = "cc" }, -- Disarm (Void)
[54786] = { type = "cc" }, -- Demonic Leap (Metamorphosis)
[104773] = { type = "buffs_defensive" }, -- Unending Resolve
[110913] = { type = "buffs_defensive" }, -- Dark Bargain
[108416] = { type = "buffs_defensive" }, -- Sacrificial Pact
[5782] = { type = "cc" }, -- Fear
[30002] = { type = "cc", parent = 5782 }, -- Fear cast?
[104045] = { type = "cc" }, -- Sleep (Metamorphosis)
[118699] = { type = "cc" }, -- Fear
[130616] = { type = "cc", parent = 118699 }, -- Fear (Glyph of Fear)
[31117] = { type = "cc" }, -- Unstable Affliction (Silence)
-- Warrior
[871] = { type = "buffs_defensive" }, -- Shield Wall
[1719] = { type = "buffs_offensive" }, -- Recklessness
[12292] = { type = "buffs_offensive" }, -- Bloodbath
[114206] = { type = "buffs_offensive" }, -- Skull Banner
[118895] = { type = "cc" }, -- Dragon Roar
[5246] = { type = "cc" }, -- Intimidating Shout
[20511] = { type = "cc" }, -- Intimidating Shout (targeted)
[7922] = { type = "cc" }, -- Charge Stun
[12975] = { type = "buffs_defensive" }, -- Last Stand
[18499] = { type = "buffs_other" }, -- Berserker Rage
[23920] = { type = "immunities_spells" }, -- Spell Reflection
[114028] = { type = "immunities_spells", parent = 23920 }, -- Mass Spell Reflection
[46968] = { type = "cc" }, -- Shockwave
[132168] = { type = "cc" }, -- Shockwave
[97462] = { type = "buffs_defensive" }, -- Rallying Cry
[97463] = { type = "buffs_defensive" }, -- Rallying Cry
[105771] = { type = "roots" }, -- Charge (Warrior)
[107566] = { type = "roots" }, -- Staggering Shout
[107574] = { type = "buffs_offensive" }, -- Avatar
[118038] = { type = "buffs_defensive" }, -- Die by the Sword
[107570] = { type = "cc" }, -- Storm Bolt
[132169] = { type = "cc" }, -- Storm Bolt
[55694] = { type = "buffs_defensive" }, -- Enraged Regeneration
[114029] = { type = "buffs_defensive" }, -- Safeguard
[114030] = { type = "buffs_defensive" }, -- Vigilance
[34784] = { type = "buffs_defensive" }, -- Intervene
[147833] = { type = "buffs_defensive" }, -- Intervene
[46924] = { type = "immunities" }, -- Bladestorm
[676] = { type = "cc" }, -- Disarm
[18498] = { type = "cc" }, -- Silenced - Gag Order (PvE only)
[2457] = { type = "buffs_other" }, -- Battle Stance
[2458] = { type = "buffs_other" }, -- Berserker Stance
[71] = { type = "buffs_other" }, -- Defensive Stance
-- Other
[30217] = { type = "cc" }, -- Adamantite Grenade
[89637] = { type = "cc" }, -- Big Daddy
[30461] = { type = "cc" }, -- Bigger One
[67769] = { type = "cc" }, -- Cobalt Frag Bomb
[30216] = { type = "cc" }, -- Fel Iron Bomb
[19784] = { type = "cc" }, -- Dark Iron Bomb
[13327] = { type = "cc" }, -- Reckless Charge
[19769] = { type = "cc" }, -- Thorium Grenade
[19821] = { type = "cc" }, -- Arcane Bomb
[12562] = { type = "cc" }, -- The Big One
[39965] = { type = "roots" }, -- Frost Grenade
[55536] = { type = "roots" }, -- Frostweave Net
[75148] = { type = "roots" }, -- Embersilk Net
[13099] = { type = "roots" }, -- Net-o-Matic
[20549] = { type = "cc" }, -- War Stomp
[107079] = { type = "cc" }, -- Quaking Palm
[129597] = { type = "cc" }, -- Arcane Torrent
[25046] = { type = "cc", parent = 129597 }, -- Arcane Torrent
[28730] = { type = "cc", parent = 129597 }, -- Arcane Torrent
[50613] = { type = "cc", parent = 129597 }, -- Arcane Torrent
[69179] = { type = "cc", parent = 129597 }, -- Arcane Torrent
[80483] = { type = "cc", parent = 129597 }, -- Arcane Torrent
[104270] = { type = "buffs_other" }, -- Drink
[104235] = { type = "buffs_other", parent = 104270 }, -- eat
[118358] = { type = "buffs_other", parent = 104270 }, -- drink
[104269] = { type = "buffs_other", parent = 104270 }, -- drink
[149024] = { type = "buffs_other", parent = 104270 }, -- drink
[148996] = { type = "buffs_other", parent = 104270 }, -- drink
[149000] = { type = "buffs_other", parent = 104270 }, -- drink
[148997] = { type = "buffs_other", parent = 104270 }, -- drink
-- Special
--[6788] = { type = "special", nounitFrames = true, noraidFrames = true }, -- Weakened Soul
[11444] = { type = "cc" }, -- Shackle Undead
[13704] = { type = "cc" }, -- Psychic Scream
}
local specDispel = {
[65] = { -- Holy Paladin
Magic = true,
Poison = true,
Disease = true,
},
[66] = { -- Protection Paladin
Poison = true,
Disease = true,
},
[70] = { -- Retribution Paladin
Poison = true,
Disease = true,
},
[102] = { -- Balance Druid
Curse = true,
Poison = true,
},
[103] = { -- Feral Druid
Curse = true,
Poison = true,
},
[104] = { -- Guardian Druid
Curse = true,
Poison = true,
},
[105] = { -- Restoration Druid
Magic = true,
Curse = true,
Poison = true,
},
[256] = { -- Discipline Priest
Magic = true,
Disease = true,
},
[257] = { -- Holy Priest
Magic = true,
Disease = true,
},
[258] = { -- Shadow Priest
Magic = true,
Disease = true,
},
[262] = { -- Elemental Shaman
Curse = true,
},
[263] = { -- Enhancement Shaman
Curse = true,
},
[264] = { -- Restoration Shaman
Magic = true,
Curse = true,
},
[268] = { -- Brewmaster Monk
Poison = true,
Disease = true,
},
[269] = { -- Windwalker Monk
Poison = true,
Disease = true,
},
[270] = { -- Mistweaver Monk
Magic = true,
Poison = true,
Disease = true,
},
}
-- Make sure we always see these debuffs, but don't make them bigger
BigDebuffs.PriorityDebuffs = {
34914, -- Vampiric Touch
102355, -- Faerie Swarm
117405, -- Binding Shot
122470, -- Touch of Karma
770, -- Faerie Fire
130736, -- Soul Reaper (Unholy)
}
-- Store interrupt spellId and start time
BigDebuffs.units = {}
local units = {
"player",
"pet",
"target",
"focus",
"party1",
"party2",
"party3",
"party4",
"arena1",
"arena2",
"arena3",
"arena4",
"arena5",
}
local unitsWithRaid = {
"player",
"pet",
"target",
"focus",
"party1",
"party2",
"party3",
"party4",
"arena1",
"arena2",
"arena3",
"arena4",
"arena5",
}
for i = 1, 40 do
table.insert(unitsWithRaid, "raid" .. i)
end
local UnitDebuff, UnitBuff = UnitDebuff, UnitBuff
local GetAnchor = {
ShadowedUnitFrames = function(anchor)
local frame = _G[anchor]
if not frame then return end
if frame.portrait and frame.portrait:IsShown() then
return frame.portrait, frame
else
return frame, frame, true
end
end,
ZPerl = function(anchor)
local frame = _G[anchor]
if not frame then return end
if frame:IsShown() then
return frame, frame
else
frame = frame:GetParent()
return frame, frame, true
end
end,
}
local anchors = {
["ElvUI"] = {
noPortrait = true,
units = {
player = "ElvUF_Player",
pet = "ElvUF_Pet",
target = "ElvUF_Target",
focus = "ElvUF_Focus",
party1 = "ElvUF_PartyGroup1UnitButton1",
party2 = "ElvUF_PartyGroup1UnitButton2",
party3 = "ElvUF_PartyGroup1UnitButton3",
party4 = "ElvUF_PartyGroup1UnitButton4",
},
},
["bUnitFrames"] = {
noPortrait = true,
alignLeft = true,
units = {
player = "bplayerUnitFrame",
pet = "bpetUnitFrame",
target = "btargetUnitFrame",
focus = "bfocusUnitFrame",
arena1 = "barena1UnitFrame",
arena2 = "barena2UnitFrame",
arena3 = "barena3UnitFrame",
arena4 = "barena4UnitFrame",
},
},
["Shadowed Unit Frames"] = {
func = GetAnchor.ShadowedUnitFrames,
units = {
player = "SUFUnitplayer",
pet = "SUFUnitpet",
target = "SUFUnittarget",
focus = "SUFUnitfocus",
party1 = "SUFHeaderpartyUnitButton1",
party2 = "SUFHeaderpartyUnitButton2",
party3 = "SUFHeaderpartyUnitButton3",
party4 = "SUFHeaderpartyUnitButton4",
},
},
["ZPerl"] = {
func = GetAnchor.ZPerl,
units = {
player = "XPerl_PlayerportraitFrame",
pet = "XPerl_Player_PetportraitFrame",
target = "XPerl_TargetportraitFrame",
focus = "XPerl_FocusportraitFrame",
party1 = "XPerl_party1portraitFrame",
party2 = "XPerl_party2portraitFrame",
party3 = "XPerl_party3portraitFrame",
party4 = "XPerl_party4portraitFrame",
},
},
["Blizzard"] = {
units = {
player = "PlayerPortrait",
pet = "PetPortrait",
target = "TargetFramePortrait",
focus = "FocusFramePortrait",
party1 = "PartyMemberFrame1Portrait",
party2 = "PartyMemberFrame2Portrait",
party3 = "PartyMemberFrame3Portrait",
party4 = "PartyMemberFrame4Portrait",
arena1 = "ArenaEnemyFrame1ClassPortrait",
arena2 = "ArenaEnemyFrame2ClassPortrait",
arena3 = "ArenaEnemyFrame3ClassPortrait",
arena4 = "ArenaEnemyFrame4ClassPortrait",
arena5 = "ArenaEnemyFrame5ClassPortrait",
},
},
}
function BigDebuffs:OnInitialize()
self.db = LibStub("AceDB-3.0"):New("BigDebuffsDB", defaults, true)
self.db.RegisterCallback(self, "OnProfileChanged", "Refresh")
self.db.RegisterCallback(self, "OnProfileCopied", "Refresh")
self.db.RegisterCallback(self, "OnProfileReset", "Refresh")
self.frames = {}
self.UnitFrames = {}
self:SetupOptions()
end
local function HideBigDebuffs(frame)
if not frame.BigDebuffs then return end
for i = 1, #frame.BigDebuffs do
frame.BigDebuffs[i]:Hide()
end
end
function BigDebuffs:Refresh()
for frame, _ in pairs(self.frames) do
if frame:IsVisible() then CompactUnitFrame_UpdateDebuffs(frame) end
if frame and frame.BigDebuffs then self:AddBigDebuffs(frame) end
end
for unit, frame in pairs(self.UnitFrames) do
frame:Hide()
frame.current = nil
--frame.cooldown:SetHideCountdownNumbers(not self.db.profile.unitFrames.cooldownCount)
frame.cooldown.noCooldownCount = not self.db.profile.unitFrames.cooldownCount
self:AttachUnitFrame(unit)
if UnitExists(unit) then
self:UNIT_AURA(nil, unit)
end
end
end
function BigDebuffs:AttachUnitFrame(unit)
if InCombatLockdown() then return end
local frame = self.UnitFrames[unit]
local frameName = "BigDebuffs" .. unit .. "UnitFrame"
if not frame then
frame = CreateFrame("Button", frameName, UIParent, "BigDebuffsUnitFrameTemplate")
frame.icon = _G[frameName.."Icon"]
frame.cooldownContainer = CreateFrame("Button", frameName.."CooldownContainer", frame)
self.UnitFrames[unit] = frame
frame.icon:SetDrawLayer("BORDER")
frame.cooldownContainer:SetPoint("CENTER")
frame.cooldown:SetParent(frame.cooldownContainer)
frame.cooldown:SetAllPoints()
frame.cooldown:SetAlpha(0.9)
frame:RegisterForDrag("LeftButton")
frame:SetMovable(true)
frame.unit = unit
end
frame:EnableMouse(self.test)
_G[frameName.."Name"]:SetText(self.test and not frame.anchor and unit)
frame.anchor = nil
frame.blizzard = nil
local config = self.db.profile.unitFrames[unit:gsub("%d", "")]
if config.anchor == "auto" then
-- Find a frame to attach to
for k,v in pairs(anchors) do
local anchor, parent, noPortrait
if v.units[unit] then
if v.func then
anchor, parent, noPortrait = v.func(v.units[unit])
else
anchor = _G[v.units[unit]]
end
if anchor then
frame.anchor, frame.parent, frame.noPortrait = anchor, parent, noPortrait
if v.noPortrait then frame.noPortrait = true end
frame.alignLeft = v.alignLeft
frame.blizzard = k == "Blizzard"
if not frame.blizzard then break end
end
end
end
end
if frame.anchor then
if frame.blizzard then
-- Blizzard Frame
frame:SetParent(frame.anchor:GetParent())
frame:SetFrameLevel(frame.anchor:GetParent():GetFrameLevel())
frame.cooldownContainer:SetFrameLevel(frame.anchor:GetParent():GetFrameLevel()-1)
frame.cooldownContainer:SetSize(frame.anchor:GetWidth() - config.cdMod, frame.anchor:GetHeight() - config.cdMod)
frame.anchor:SetDrawLayer("BACKGROUND")
--frame.cooldown:SetMask("Interface\\CHARACTERFRAME\\TempPortraitAlphaMaskSmall")
--frame.cooldown:SetSwipeTexture("Interface\\CHARACTERFRAME\\TempPortraitAlphaMaskSmall")
else
frame:SetParent(frame.parent and frame.parent or frame.anchor)
frame:SetFrameLevel(99)
frame.cooldownContainer:SetSize(frame.anchor:GetWidth(), frame.anchor:GetHeight())
end
frame:ClearAllPoints()
if frame.noPortrait then
-- No portrait, so attach to the side
if frame.alignLeft then
frame:SetPoint("TOPRIGHT", frame.anchor, "TOPLEFT")
else
frame:SetPoint("TOPLEFT", frame.anchor, "TOPRIGHT")
end
local height = frame.anchor:GetHeight()
frame:SetSize(height, height)
else
frame:SetAllPoints(frame.anchor)
end
else
-- Manual
frame:SetParent(UIParent)
frame:ClearAllPoints()
frame.cooldownContainer:SetSize(frame:GetWidth(), frame:GetHeight())
frame:SetFrameLevel(frame:GetParent():GetFrameLevel()+1)
frame.cooldownContainer:SetFrameLevel(frame:GetParent():GetFrameLevel())
frame.cooldownContainer:SetSize(frame:GetWidth(), frame:GetHeight())
if not self.db.profile.unitFrames[unit] then self.db.profile.unitFrames[unit] = {} end
if self.db.profile.unitFrames[unit].position then
frame:SetPoint(unpack(self.db.profile.unitFrames[unit].position))
else
-- No saved position, anchor to the blizzard position
LoadAddOn("Blizzard_ArenaUI")
local relativeFrame = _G[anchors.Blizzard.units[unit]] or UIParent
frame:SetPoint("CENTER", relativeFrame, "CENTER")
end
frame:SetSize(config.size, config.size)
end
end
hooksecurefunc("CompactUnitFrame_UpdateAll", function(frame)
if frame:IsForbidden() then return end
local name = frame:GetName()
if not name or not name:match("^Compact") then return end
if InCombatLockdown() and not frame.BigDebuffs then
if not pending[frame] then pending[frame] = true end
else
BigDebuffs:AddBigDebuffs(frame)
end
end)
local pending = {}
function BigDebuffs:PLAYER_REGEN_ENABLED()
for frame,_ in pairs(pending) do
BigDebuffs:AddBigDebuffs(frame)
pending[frame] = nil
end
end
function BigDebuffs:SaveUnitFramePosition(frame)
self.db.profile.unitFrames[frame.unit].position = { frame:GetPoint() }
end
function BigDebuffs:Test()
self.test = not self.test
self:Refresh()
end
local TestDebuffs = {}
local function InsertTestDebuff(spellID, dispelType)
local texture = GetSpellTexture(spellID)
table.insert(TestDebuffs, { spellID, texture, 0, dispelType })
end
local function UnitDebuffTest(unit, index)
index = math.random(1, #TestDebuffs)
local debuff = TestDebuffs[index]
if not debuff then return end
return "Test", nil, debuff[2], 0, debuff[4], 60, GetTime() + 60, nil, nil, nil, debuff[1]
end
function BigDebuffs:OnEnable()
self:RegisterEvent("PLAYER_TALENT_UPDATE")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
self:RegisterEvent("PLAYER_FOCUS_CHANGED")
self:RegisterEvent("PLAYER_TARGET_CHANGED")
self:RegisterEvent("UNIT_PET")
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
self:RegisterEvent("UNIT_AURA")
self:PLAYER_TALENT_UPDATE()
-- Prevent OmniCC finish animations
if OmniCC and type(OmniCC) == 'table' and OmniCC.TriggerEffect then
self:RawHook(OmniCC, "TriggerEffect", function(object, cooldown)
local name = cooldown:GetName()
if name and name:find("BigDebuffs") then return end
self.hooks[OmniCC].TriggerEffect(object, cooldown)
end, true)
end
InsertTestDebuff(8122, "Magic") -- Psychic Scream
InsertTestDebuff(339, "Magic") -- Entangling Roots
InsertTestDebuff(408, nil) -- Kidney Shot
InsertTestDebuff(114404, nil) -- Void Tendrils
InsertTestDebuff(589, "Magic") -- Shadow Word: Pain
InsertTestDebuff(772, nil) -- Rend
end
function BigDebuffs:PLAYER_ENTERING_WORLD()
for i = 1, #units do
self:AttachUnitFrame(units[i])
end
self.stances = {}
end
function BigDebuffs:COMBAT_LOG_EVENT_UNFILTERED(_, _, subEvent, ...)
local _,srcGUID,_,_,_, destGUID, _,_,_, spellId = ...
if subEvent == "SPELL_CAST_SUCCESS" and self.Spells[spellId] then
if spellId == 2457 or spellId == 2458 or spellId == 71 then
self:UpdateStance(srcGUID, spellId)