-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMPR_Timers.lua
1153 lines (1087 loc) · 50.9 KB
/
MPR_Timers.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
MPR_Timers = CreateFrame("Frame", "MPR LK Timers", UIParent)
MPR_Timers.TimeSinceLastUpdate = 0
MPR_Timers.LichKingWarnings = {
-- Will warn: "Warning: The Lich King has {%%}% HP remaining! {Message}"
-- [%%] = {Warned, Message},
[77] = {false, nil},
[74] = {false, "Transition soon!"},
[47] = {false, nil},
[44] = {false, "Transition soon!"},
}
MPR_Timers.QuakeCount = 0
MPR_Timers.InfoTimers = {
[1] = {
[1] = {['name'] = "Bone Spike Graveyard", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
[2] = {['name'] = "Bone Storm", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
},
[2] = {
[1] = {['name'] = "Summon Adds", ['format'] = "{Name}: {Time}", ['label'] = 1},
[2] = {['name'] = "Summon Vengeful Shade", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
},
[3] = {
[1] = {['name'] = "Below Zero", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
},
[4] = {
[1] = {['name'] = "Rune of Blood", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
},
[5] = {
[1] = {['name'] = "Gas Spore", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
[2] = {['name'] = "Gastric Bloat", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
},
[6] = {
[1] = {['name'] = "Slime Spray", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[2] = {['name'] = "Mutated Infection", ['format'] = "{SpellLink}: {Time}", ['label'] = 2},
[3] = {['name'] = "Vile Gas", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 3},
},
[7] = {
[1] = {['name'] = "Unstable Experiment", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
[2] = {['name'] = "Malleable Goo", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
[3] = {['name'] = "Choking Gas Bomb", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 3},
},
[8] = {
[1] = {['name'] = "Target Switch", ['format'] = "{Name}: {Time}", ['label'] = 1},
[2] = {['name'] = "Empowered Shock Vortex", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
[3] = {['name'] = "Shadow Resonance", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 3},
},
[9] = {
[1] = {['name'] = "Incite Terror", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[2] = {['name'] = "Swarming Shadows", ['format'] = "{SpellLink}: {Time}", ['label'] = 2},
[3] = {['name'] = "Berserk", ['format'] = "{SpellLink}: {Time}", ['label'] = 3},
},
[10] = {
[1] = {['name'] = "Summon Portal", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
},
[11] = {
[1] = {['name'] = "Blistering Cold", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
[2] = {['name'] = "Air Phase", ['format'] = "{Name}: {Time}", ['label'] = 2},
[3] = {['name'] = "Frost Beacon", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
},
[12] = {
[1] = {['name'] = "Summon Shadow Trap", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
[2] = {['name'] = "Summon Val'kyr", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[3] = {['name'] = "Defile", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 2},
[4] = {['name'] = "Harvest Soul/s", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[5] = {['name'] = "Raging Spirit", ['format'] = "{Name} CD: {Time}", ['label'] = 1},
[6] = {['name'] = "Quake", ['format'] = "{SpellLink}: {Time}", ['label'] = 2},
[7] = {['name'] = "Necrotic Plague", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
},
[13] = {
[1] = {['name'] = "Impale", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
[2] = {['name'] = "Staggering Stomp", ['format'] = "{SpellLink}: {Time}", ['label'] = 2},
[3] = {['name'] = "Rising Anger", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 3},
},
[14] = {
[1] = {['name'] = "Slime Pool", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
},
[20] = {
[1] = {['name'] = "Enrage", ['format'] = "{SpellLink} CD: {Time}", ['label'] = 1},
[2] = {['name'] = "Air Phase", ['format'] = "{Name}: {Time}", ['label'] = 2},
},
[21] = {
[1] = {['name'] = "Blade Tempest", ['format'] = "{SpellLink} 1: {Time}", ['label'] = 1},
[2] = {['name'] = "Blade Tempest", ['format'] = "{SpellLink} 2: {Time}", ['label'] = 2},
[3] = {['name'] = "Blade Tempest", ['format'] = "{SpellLink} 3: {Time}", ['label'] = 3},
},
[22] = {
[1] = {['name'] = "Cleave Armor", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[2] = {['name'] = "Summon Adds", ['format'] = "{Name}: {Time}", ['label'] = 2},
[3] = {['name'] = "Intimidating Roar", ['format'] = "{SpellLink}: {Time}", ['label'] = 3},
},
[23] = {
[1] = {['name'] = "Meteor Strike", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[2] = {['name'] = "Fiery Combustion", ['format'] = "{SpellLink}: {Time}", ['label'] = 2},
[3] = {['name'] = "Twilight Cutter", ['format'] = "{SpellLink}: {Time}", ['label'] = 1},
[4] = {['name'] = "Soul Consumption", ['format'] = "{SpellLink}: {Time}", ['label'] = 2},
},
}
-- structure generated as timers are set
MPR_Timers.DataTimers = {[1] = {}, [2] = {}, [3] = {}, [4] = {}, [5] = {}, [6] = {}, [7] = {}, [8] = {}, [9] = {}, [10] = {}, [11] = {}, [12] = {}, [13] = {}, [20] = {}, [21] = {}, [22] = {}, [23] = {}}
MPR_Timers.DefaultTimerAnnounces = {
-- EXAMPLE:
-- [EncounterID] = {
-- [AbilityID] = {[Second] = {false, IconID}, [Second2] = {false, IconID}},
-- },
--[[ letting people tick announces for themselves in options
[7] = { -- PP
[1] = {[5] = {false, 7}},
[2] = {[5] = {false, 8}, [3] = {false, 8}},
[3] = {[5] = {false, 2}},
},
[8] = { -- BPC
[1] = {[10] = {false, 3}, [5] = {false, 3}},
},
[9] = { -- BQL
[1] = {[20] = {false, 3}, [10] = {false, 3}}, -- Incite Terror: 20s,10s
[2] = {[5] = {false, 7}}, -- Swarming Shadows: 5s
[3] = {[30] = {false, 8}, [20] = {false, 8}, [10] = {false, 8}, [5] = {false, 7}}, -- Berserk: 30s,20s,10s,5s
},
[11] = { -- Sindragosa
[1] = {[10] = {false, 8}, [5] = {false, 8}},
[2] = {[10] = {false, 6}, [5] = {false, 6}},
[3] = {[3] = {false, 7}},
},
[12] = { -- LK
[1] = {[3] = {false, 8}, [2] = {false, 8}, [1] = {false, 8}},
[2] = {[10] = {false, 4}, [5] = {false, 4}},
[3] = {[10] = {false, 7}, [5] = {false, 7}},
[4] = {[10] = {false, 6}, [5] = {false, 6}},
[5] = {[3] = {false, 4}},
[6] = {[5] = {false, 3}},
[7] = {[5] = {false, 4}},
},
[23] = { -- Halion
[1] = {[10] = {false, 2}, [5] = {false, 2}},
[2] = {[5] = {false, 2}},
[3] = {[5] = {false, 3}, [3] = {false, 3}},
[4] = {[5] = {false, 3}},
},
]]
}
MPR_Timers.ValkyrCount = 0
MPR_Timers.ValkyrTable = {} -- {IconID, Health, HealthMax, Speed}
MPR_Timers.ValkyrUpdated = {}
MPR_Timers.GrabbedPlayers = {}
MPR_Timers.ValkyrObjects = {}
MPR_Timers.BaltharusCount = 0
MPR_Timers.BaltharusTable = {}
MPR_Timers.BossNum = 0
MPR_Timers.Bosses = {[0] = "N/a", [1] = "LK",[2] = "LD", [3] = "GB", [4] = "DB", [5] = "Fes", [6] = "Rot", [7] = "PP", [8] = "BPC", [9] = "BQL", [10] = "VD", [11] = "Sin", [12] = "LK", [23] = "Hal"}
function MPR_Timers:Initialize()
MPR_Timers:Hide()
MPR_Timers:SetBackdrop(MPR.Settings["BACKDROP"])
MPR_Timers:SetBackdropColor(unpack(MPR.Settings["BACKDROPCOLOR"]))
MPR_Timers:SetBackdropBorderColor(MPR.Settings["BACKDROPBORDERCOLOR"].R/255, MPR.Settings["BACKDROPBORDERCOLOR"].G/255, MPR.Settings["BACKDROPBORDERCOLOR"].B/255)
MPR_Timers:SetPoint("CENTER",UIParent)
MPR_Timers:SetWidth(200)
MPR_Timers:SetHeight(56)
MPR_Timers:EnableMouse(true)
MPR_Timers:SetMovable(true)
MPR_Timers:RegisterForDrag("LeftButton")
MPR_Timers:SetUserPlaced(true)
MPR_Timers:SetScript("OnDragStart", function(self) MPR_Timers:StartMoving() end)
MPR_Timers:SetScript("OnDragStop", function(self) MPR_Timers:StopMovingOrSizing() end)
MPR_Timers:SetFrameStrata("FULLSCREEN_DIALOG")
MPR_Timers.Title = MPR_Timers:CreateFontString(nil, "OVERLAY", "GameTooltipText")
MPR_Timers.Title:SetPoint("TOPLEFT", 8, -8)
MPR_Timers.Title:SetTextColor(190/255, 190/255, 190/255)
MPR_Timers.Title:SetText("|cff"..MPR.Colors["TITLE"].."MPR|r Timers:")
MPR_Timers.Title:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE")
MPR_Timers.Title:SetShadowOffset(1, -1)
MPR_Timers.Title2 = MPR_Timers:CreateFontString(nil, "OVERLAY", "GameTooltipText")
MPR_Timers.Title2:SetPoint("LEFT", MPR_Timers.Title, "RIGHT", 0, 0)
MPR_Timers.Title2:SetTextColor(190/255, 190/255, 190/255)
MPR_Timers.Title2:SetText("|cFF00CCFF"..MPR.BossData[MPR_Timers.BossNum or 0]["ENCOUNTER"])
MPR_Timers.Title2:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE")
MPR_Timers.Title2:SetShadowOffset(1, -1)
MPR_Timers.CloseButton = CreateFrame("button","BtnClose", MPR_Timers, "UIPanelButtonTemplate")
MPR_Timers.CloseButton:SetHeight(14)
MPR_Timers.CloseButton:SetWidth(14)
MPR_Timers.CloseButton:SetPoint("TOPRIGHT", -8, -8)
MPR_Timers.CloseButton:SetText("x")
MPR_Timers.CloseButton:SetScript("OnClick", function(self) MPR_Timers_Options:Hide(); MPR_Timers:Hide(); BtnToggleTimers:SetText("Show") end)
MPR_Timers.OptionsButton = CreateFrame("button","BtnOptions", MPR_Timers, "UIPanelButtonTemplate")
MPR_Timers.OptionsButton:SetHeight(14)
MPR_Timers.OptionsButton:SetWidth(50)
MPR_Timers.OptionsButton:SetPoint("TOPRIGHT", -24, -8)
MPR_Timers.OptionsButton:SetText("Options")
MPR_Timers.OptionsButton:SetScript("OnClick", function(self) MPR_Timers_Options:Show() end)
MPR_Timers.Label1 = MPR_Timers:CreateFontString("Label1", "OVERLAY", "GameTooltipText")
MPR_Timers.Label1:SetPoint("TOPLEFT", 8, -22)
MPR_Timers.Label1:SetFont("Fonts\\FRIZQT__.TTF", 10, nil)
MPR_Timers.Label1:SetText("|cFFbebebeTimer1|r")
MPR_Timers.Label2 = MPR_Timers:CreateFontString("Label2", "OVERLAY", "GameTooltipText")
MPR_Timers.Label2:SetPoint("TOPLEFT", 8, -36)
MPR_Timers.Label2:SetFont("Fonts\\FRIZQT__.TTF", 10, nil)
MPR_Timers.Label2:SetText("|cFFbebebeTimer2|r")
MPR_Timers.Label3 = MPR_Timers:CreateFontString("Label3", "OVERLAY", "GameTooltipText")
MPR_Timers.Label3:SetPoint("TOPLEFT", 8, -50)
MPR_Timers.Label3:SetFont("Fonts\\FRIZQT__.TTF", 10, nil)
MPR_Timers.Label3:SetText("Grabbed: ")
MPR_Timers_Options:Initialize()
end
function MPR_Timers:Toggle()
if MPR_Timers:IsVisible() then
MPR_Timers:Hide()
else
MPR_Timers:Show()
if not MPR.Settings["TIMERS"] then
MPR:SelfReport("Timers are |cFFFF0000disabled|r. |cff3588ff|HMPR:Options:Show|h[Options]|h|r")
end
end
end
function MPR_Timers:GetSpellID(spellName)
-- Lord Marrowgar
return spellName == "Bone Spike Graveyard" and 69057 or
spellName == "Bone Storm" and 69076 or
-- Lady Deathwhisper
spellName == "Summon Vengeful Shade" and 71426 or
-- Gunship Battle
spellName == "Below Zero" and 69705 or
-- Deathbringer Saurfang
spellName == "Rune of Blood" and 72410 or
-- Festergut
spellName == "Gas Spore" and 69278 or
spellName == "Gastric Bloat" and 72219 or
-- Rotface
spellName == "Slime Spray" and 69508 or
spellName == "Mutated Infection" and 69674 or
spellName == "Vile Gas" and 69240 or
-- Professor Putricide
spellName == "Unstable Experiment" and 70351 or
spellName == "Malleable Goo" and 70852 or
spellName == "Choking Gas Bomb" and 71255 or
-- Blood Prince Council
spellName == "Empowered Shock Vortex" and (self.EmpoweredPrince ~= "Prince Valanar" and 71944 or 72039) or
spellName == "Shadow Resonance" and 71943 or
-- Blood-Queen Lana'thel
spellName == "Incite Terror" and 73070 or
spellName == "Swarming Shadows" and 71264 or
spellName == "Berserk" and 26662 or
-- Valithria Dreamwalker
spellName == "Summon Portal" and (self:IsNormal() and 72224 or 72480) or
-- Sindragosa
spellName == "Blistering Cold" and 70123 or
spellName == "Frost Beacon" and 70126 or
-- The Lich King
spellName == "Summon Shadow Trap" and 73539 or
spellName == "Shadow Trap" and 73529 or
spellName == "Harvest Soul/s" and (self:IsNormal() and 74325 or 74297) or
spellName == "Summon Val'kyr" and 69037 or
spellName == "Defile" and 72762 or
spellName == "Raging Spirit" and 69200 or
spellName == "Quake" and 72262 or
spellName == "Necrotic Plague" and self:RaidMode(70337,73912,73913,73914) or
-- Gormok the Impaler
spellName == "Impale" and 66331 or
spellName == "Staggering Stomp" and 67648 or
spellName == "Rising Anger" and 66636 or
-- Acidmaw & Dreadscale
spellName == "Slime Pool" and 66883 or
-- Saviana Ragefire
spellName == "Enrage" and 78722 or
-- Baltharus the Warborn
spellName == "Blade Tempest" and 75125 or
-- General Zarithrian
spellName == "Cleave Armor" and 74367 or
spellName == "Intimidating Roar" and 74384 or
-- Halion
spellName == "Meteor Strike" and self:RaidMode(74648,75877,75878,75879) or
spellName == "Fiery Combustion" and 74562 or
spellName == "Twilight Cutter" and 74769 or
spellName == "Soul Consumption" and 74792
end
function MPR_Timers:RaidMode(Mode10N, Mode25N, Mode10H, Mode25H)
local Mode = GetInstanceDifficulty()
return Mode == 1 and Mode10N or Mode == 2 and Mode25N or Mode == 3 and Mode10H or Mode == 4 and Mode25H
end
function MPR_Timers:IsNormal() return self:RaidMode(true, true, false, false) end
function MPR_Timers:IsHeroic() return self:RaidMode(false, false, true, true) end
function MPR_Timers:Is10Man() return self:RaidMode(true, false, true, false) end
function MPR_Timers:Is25Man() return self:RaidMode(false, true, false, true) end
function MPR_Timers:OnUpdate(elapsed)
local bWhite = GetTime()%1.5 < 0.75
local Label1HasText = nil
local Label2HasText = nil
local Label3HasText = nil
local e = self.BossNum
if e then
self.DataTimers[e] = self.DataTimers[e] or {}
for i,_ in pairs(self.DataTimers[e]) do
local info = self.InfoTimers[e][i]
local timer = self.DataTimers[e][i]
local warns = MPR.Settings["TIMER_ANNOUNCES"][e] and MPR.Settings["TIMER_ANNOUNCES"][e][i] or nil
if timer then -- timer must be set
local Seconds, String, Color
Seconds = round(timer,0,true)
Color = Seconds > 12 and "00FF00" or Seconds > 9 and "FFFF00" or Seconds > 6 and "FFAA00" or Seconds > 3 and "FF7700" or "FF0000"
String = info['format']:gsub("{SpellLink}",GetSpellLink(self:GetSpellID(info['name']) or 0)):gsub("{Name}",info['name']):gsub("{Time}","|cFF"..Color..Seconds.." sec|r")
if info['label'] == 1 then
self.Label1:SetText(String)
self.Label1:Show()
Label1HasText = true
elseif info['label'] == 2 then
self.Label2:SetText(String)
self.Label2:Show()
Label2HasText = true
elseif info['label'] == 3 then
self.Label3:SetText(String)
self.Label3:Show()
Label3HasText = true
end
if warns then
if warns[Seconds] and not warns[Seconds][1] then
warns[Seconds][1] = true
local formatted = (warns[Seconds][2] and "|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_"..warns[Seconds][2].."|t " or "")..String..(warns[Seconds][2] and " |TInterface\\TargetingFrame\\UI-RaidTargetingIcon_"..warns[Seconds][2].."|t" or "")
String = info['format']:gsub("{SpellLink}",GetSpellLink(self:GetSpellID(info['name']) or 0)):gsub("{Name}",info['name']):gsub("{Time}",Seconds.." sec")
local unformattted = (warns[Seconds][2] and "{rt"..warns[Seconds][2].."} " or "")..String..(warns[Seconds][2] and " {rt"..warns[Seconds][2].."}" or "")
if MPR.Settings["T_RAID"] then
MPR:HandleReport(unformattted,formatted,true)
elseif MPR.Settings["T_SELF"] then
MPR:SelfReport(Formatted)
end
end
if warns[Seconds+1] and warns[Seconds+1][1] then
warns[Seconds+1][1] = false
end
end
end
end
end
if not Label3HasText and (e ~= 12 or self.QuakeCount ~= 1) then
self.Label3:SetText("")
self.Label3:Hide()
if not Label2HasText then
self.Label2:SetText("")
self.Label2:Hide()
if not Label1HasText then
--self.Label1:SetText("")
--self.Label1:Hide()
self.Label1:SetText("No timers active.")
end
end
end
self:SetHeight(Label3HasText and 69 or Label2HasText and 56 or 43)
if e == 12 then -- LK only
self.TimeSinceLastUpdate = self.TimeSinceLastUpdate + elapsed
if self.TimeSinceLastUpdate >= MPR.Settings["UPDATEFREQUENCY"] then
local diff = self.TimeSinceLastUpdate
self.TimeSinceLastUpdate = 0
self:Update(diff)
end
end
end
local ClassColors = {["DEATHKNIGHT"] = "C41F3B", ["DRUID"] = "FF7D0A", ["HUNTER"] = "ABD473", ["MAGE"] = "69CCF0", ["PALADIN"] = "F58CBA", ["PRIEST"] = "FFFFFF", ["ROGUE"] = "FFF569", ["SHAMAN"] = "0070DE", ["WARLOCK"] = "9482C9", ["WARRIOR"] = "C79C6E"}
function MPR_Timers:Update()
local countValkyr = 0
local arrayGrabbed = {}
local Color = {R = 1, G = 1, B = 1}
local LKHealthPct = nil
for i=1,GetNumRaidMembers() do
local UnitIDTarget = (i > 0 and "raid"..i or "").."target"
if UnitName(UnitIDTarget) == "The Lich King" then
LKHealthPct = round(100*UnitHealth(UnitIDTarget)/UnitHealthMax(UnitIDTarget),0,true)
break
end
end
if LKHealthPct and LKHealthPct > 40 and self.LichKingWarnings[LKHealthPct] and not self.LichKingWarnings[LKHealthPct][1] then
self.LichKingWarnings[LKHealthPct][1] = true
MPR:RaidReport("Warning: The Lich King has "..LKHealthPct.."% HP remaining! "..(self.LichKingWarnings[LKHealthPct][2] or ""))
end
if self.QuakeCount == 1 then -- During Phase 2 only
for i=0,GetNumRaidMembers() do
local UnitID = i == 0 and "player" or "raid"..i
-- Check if grabbed
if UnitInVehicle(UnitID) then
if not self.GrabbedPlayers[UnitName(UnitID)] then -- Insert grabbed player
MPR:ReportValkyrGrab(UnitName(UnitID))
self.GrabbedPlayers[UnitName(UnitID)] = {} -- {UnitName => TargetMarker}
self.GrabbedPlayers[UnitName(UnitID)].Name = string.format("|cFF%s%s|r",ClassColors[strupper(select(2,UnitClass(UnitID)))],UnitName(UnitID))
self.GrabbedPlayers[UnitName(UnitID)].Icon = GetRaidTargetIndex(UnitID)
elseif GetRaidTargetIndex(UnitID) then -- Update grabbed player's icon if we don't have it yet
self.GrabbedPlayers[UnitName(UnitID)].Icon = GetRaidTargetIndex(UnitID)
end
elseif self.GrabbedPlayers[UnitName(UnitID)] then -- Remove grabbed player
self.GrabbedPlayers[UnitName(UnitID)] = nil
end
end
-- Print grabbed players
for _,Unit in pairs(self.GrabbedPlayers) do
table.insert(arrayGrabbed,(Unit.Icon and Unit.Icon > 0 and "|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_"..Unit.Icon..":12:12|t" or "")..Unit.Name)
end
-- Blinking label if players are grabbed
if #arrayGrabbed > 0 then
if GetTime()%1.4 < 0.7 then
Color = {R = 1, G = 0, B = 0}
end
end
self:SetHeight(69)
MPR_Timers.Label3:Show()
else
self.GrabbedPlayers = {}
self.ValkyrTable = {}
self:SetHeight(56)
MPR_Timers.Label3:Hide()
end
self.Label3:SetTextColor(Color.R, Color.G, Color.B)
self.Label3:SetText("Grabbed: "..table.concat(arrayGrabbed,", "))
end
function MPR_Timers:NewTimer(ability,cd_left,special)
local TimeInCB = math.floor(GetTime()-MPR.DataDeaths[#MPR.DataDeaths].TimeStart)
TimeInCB = string.format("%2d:%02d",floor(TimeInCB/60),(TimeInCB%60))
MPR:SelfReport("|r|cFFFF0000New cooldown! Ability: |r|cFFFFFFFF"..ability.."|r|cFFFF0000; CD Left: |r|cFFFFFFFF"..cd_left.."|r|cFFFF0000 s; Encounter Time: |r|cFFFFFFFF"..TimeInCB.."; Instance Diff.: |r|cFFFFFFFF"..GetInstanceDifficulty().."|r|cFFFF0000"..(special and "; |r|cFFFFFFFF"..special.."|r|cFFFF0000" or "").."). |r|cFFFFFF00|HMPR:CopyUrl:https://github.com/Mihapro/MP-Reporter/issues?labels=timer|h[Open an issue on GitHub!]|h|r|cFFBEBEBE")
end
function MPR_Timers:EncounterStart(ID)
self:Reset()
self.DataTimers[ID] = {}
if ID == 1 then
self.DataTimers[1][1] = 10
self.DataTimers[1][2] = 45
elseif ID == 2 then
self.LD_Phase = 1
self.AddsFound = false
self.DataTimers[2][1] = 5
self.DataTimers[2][2] = nil
elseif ID == 3 then
self.DataTimers[3][1] = 40 --45
elseif ID == 4 then
self.DataTimers[4][1] = 20
elseif ID == 5 then
self.DataTimers[5][1] = 20
self.DataTimers[5][2] = 12.5
elseif ID == 6 then
self.DataTimers[6][1] = 20
self.DataTimers[6][2] = 14
self.DataTimers[6][3] = self:IsHeroic() and 15 or nil
elseif ID == 7 then
self.PP_Phase = 1
self.DataTimers[7][1] = 25
elseif ID == 8 then
self.EmpoweredPrince = "Prince Valanar"
self.DataTimers[8][1] = 45
self.DataTimers[8][2] = 15
self.DataTimers[8][3] = 10
elseif ID == 9 then
self.DataTimers[9][1] = self:Is25Man() and 127 or 124
self.DataTimers[9][2] = 28
self.DataTimers[9][3] = 330
elseif ID == 10 then
self.DataTimers[10][1] = 45
elseif ID == 11 then
self.SindragosaPhase = 1
self.DataTimers[11][1] = 36
self.DataTimers[11][2] = 48
elseif ID == 12 then
self.QuakeCount = 0
self.ValkyrCount = 0
self.RagingSpiritCount = 0
self.DataTimers[12][7] = 27
if self:IsHeroic() then
self.Label2:Hide() -- Hide Defile label
self.DataTimers[12][1] = 30
end
elseif ID == 13 then
self.DataTimers[13][1] = 8
self.DataTimers[13][2] = 15
self.DataTimers[13][3] = 15
elseif ID == 14 then
self.DataTimers[14][1] = 15
elseif ID == 20 then
self.DataTimers[20][1] = 15
self.DataTimers[20][2] = 28
elseif ID == 21 then
self.BaltharusCount = 0
self.BaltharusObjects = {}
self.DataTimers[21][1] = 12
elseif ID == 22 then
self.DataTimers[22][1] = 15
self.DataTimers[22][2] = 40
self.DataTimers[22][3] = 42
elseif ID == 23 then
self.DataTimers[23][1] = 25
self.DataTimers[23][2] = 15
else
return
end
self.BossNum = ID
self.Title2:SetText("|cFF00CCFF"..MPR.BossData[MPR_Timers.BossNum or 0]["ENCOUNTER"])
end
-- ICECROWN CITADEL
-- 1: Lord Marrowgar
function MPR_Timers:BoneSpikeGraveyard()
--local cd = round(self.DataTimers[1][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Bone Spike Graveyard")),cd,nil) end
self.DataTimers[1][1] = 15
end
function MPR_Timers:BoneStorm()
--local cd = round(self.DataTimers[1][2],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Bone Storm")),cd,nil) end
if self:IsNormal() then
self.DataTimers[1][1] = self:Is10Man() and 35 or 45
end
self.DataTimers[1][2] = 90
end
-- 2: Lady Deathwhisper
MPR_Timers.LD_Phase = 1
function MPR_Timers:WaveSummoned()
self.DataTimers[2][1] = 60
end
function MPR_Timers:ManaBarrierRemoved()
self.LD_Phase = 2
self.DataTimers[2][1] = self:IsHeroic() and 30 or nil
self.DataTimers[2][2] = 12
end
function MPR_Timers:SummonVengefulShade()
--local cd = round(self.DataTimers[2][2],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Summon Vengeful Shade")),cd,nil) end
self.DataTimers[2][2] = 18
end
MPR_Timers.AddsFound = false
function MPR_Timers:SearchForAdds()
for i=1,GetNumRaidMembers() do
local t = UnitName("raid"..i.."target")
if t == "Cult Adherent" or t == "Empowered Adherent" or t == "Reanimated Adherent" then
return true
end
end
end
-- 3: Gunship Battle
function MPR_Timers:BelowZero()
--local cd = round(self.DataTimers[3][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Below Zero")),cd,nil) end
self.DataTimers[3][1] = 60
end
-- 4: Deathbringer Saurfang
function MPR_Timers:RuneOfBlood()
--local cd = round(self.DataTimers[4][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Rune of Blood")),cd,nil) end
self.DataTimers[4][1] = 18
end
-- 5: Festergut
function MPR_Timers:GasSpore()
--local cd = round(self.DataTimers[5][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Gas Spore")),cd,nil) end
self.DataTimers[5][1] = 40
end
function MPR_Timers:GastricBloat()
--local cd = round(self.DataTimers[5][2],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Gastric Bloat")),cd,nil) end
self.DataTimers[5][2] = 15
end
-- 6: Rotface
function MPR_Timers:SlimeSpray()
--local cd = round(self.DataTimers[6][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Slime Spray")),cd,nil) end
self.DataTimers[6][1] = 20
end
function MPR_Timers:MutatedInfection()
--local cd = round(self.DataTimers[6][2],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Mutated Infection")),cd,nil) end
self.DataTimers[6][2] = 14
end
function MPR_Timers:VileGas()
self.DataTimers[6][3] = 15
end
-- 7: Professor Putricide
MPR_Timers.PP_Phase = 1
function MPR_Timers:TearGas()
self.PP_Phase = self.PP_Phase + 1
self.DataTimers[7][1] = self.PP_Phase == 1 and (self.DataTimers[7][1] + 30)
self.DataTimers[7][2] = self.PP_Phase == 1 and (self.DataTimers[7][2] + 30) or 21
self.DataTimers[7][3] = self.PP_Phase == 1 and (self.DataTimers[7][3] + 30) or 35
end
function MPR_Timers:UnstableExperiment()
--local cd = round(self.DataTimers[7][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Unstable Experiment")),cd,nil) end
self.DataTimers[7][1] = 35
end
function MPR_Timers:MalleableGoo()
--local cd = round(self.DataTimers[7][2],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Malleable Goo")),cd,nil) end
self.DataTimers[7][2] = 25
end
function MPR_Timers:ChokingGasBomb()
--local cd = round(self.DataTimers[7][3],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Choking Gas Bomb")),cd,nil) end
self.DataTimers[7][3] = 35
end
-- 8: Blood Prince Council
MPR_Timers.EmpoweredPrince = "Prince Valanar"
function MPR_Timers:InvocationOfBlood(Prince)
self.EmpoweredPrince = Prince
self.DataTimers[8][1] = 45
--self.DataTimers[8][2] = nil
end
function MPR_Timers:ShockVortex()
self.DataTimers[8][2] = 15
end
function MPR_Timers:EmpoweredShockVortex()
--local cd = round(self.DataTimers[8][2],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Empowered Shock Vortex")),cd,nil) end
self.DataTimers[8][2] = 15
end
function MPR_Timers:ShadowResonance()
--local cd = round(self.DataTimers[8][3],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Shadow Resonance")),cd,nil) end
self.DataTimers[8][3] = 11
end
-- 9: Blood-Queen Lana'thel
function MPR_Timers:InciteTerror()
--local cd = round(self.DataTimers[9][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Incite Terror")),cd,nil) end
self.DataTimers[9][1] = 100 + (self:Is25Man() and 0 or 20)
self.DataTimers[9][2] = 30
end
function MPR_Timers:SwarmingShadows()
self.DataTimers[9][2] = 30.5
end
-- 10: Valithria Dreamwalker
function MPR_Timers:SummonPortal()
--local cd = round(self.DataTimers[10][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Summon Portal")),cd,nil) end
self.DataTimers[10][1] = 45
end
-- 11: Sindragosa
MPR_Timers.SindragosaPhase = 1
function MPR_Timers:BlisteringCold()
--local cd = round(self.DataTimers[11][1],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Blistering Cold")),cd,"Phase "..self.SindragosaPhase) end
self.DataTimers[11][1] = SindragosaPhase == 2 and 31 or nil
end
function MPR_Timers:AirPhase()
--local cd = round(self.DataTimers[11][2],1,true)
--if cd > 0 then self:NewTimer("Air Phase",cd,nil) end
self.DataTimers[11][1] = 60 --57
self.DataTimers[11][2] = 108
end
function MPR_Timers:SecondPhase()
self.SindragosaPhase = 2
self.DataTimers[11][1] = 35
self.DataTimers[11][2] = nil
self.DataTimers[11][3] = 7
end
function MPR_Timers:FrostBeacon()
if self.SindragosaPhase ~= 2 then return end
--local cd = round(self.DataTimers[11][3],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Frost Beacon")),cd,nil) end
self.DataTimers[11][3] = 16
end
-- 12: The Lich King
function MPR_Timers:SummonShadowTrap()
self.DataTimers[12][1] = 14
end
function MPR_Timers:SummonValkyr(GUID)
self.ValkyrCount = self.ValkyrCount + 1
if self.ValkyrCount == 1 then -- First Valkyr
self.DataTimers[12][2] = 45
end
--self.ValkyrTable[GUID] = {}
--self.ValkyrTable[GUID][1] = self.ValkyrCount
if self.ValkyrCount == (self:Is10Man() and 1 or 3) then -- Last Valkyr
self.ValkyrCount = 0
end
end
function MPR_Timers:Defile()
self.DataTimers[12][3] = 31
end
function MPR_Timers:HarvestSoul()
self.DataTimers[12][4] = 75
end
function MPR_Timers:HarvestSouls()
self.DataTimers[12][4] = 120
self.DataTimers[12][3] = 50
end
function MPR_Timers:RemorselessWinter()
self.DataTimers[12][1] = nil
self.DataTimers[12][2] = nil
self.DataTimers[12][3] = nil
self.DataTimers[12][5] = self.QuakeCount == 0 and 3 or 5
self.DataTimers[12][6] = 60
end
MPR_Timers.RagingSpiritCount = 0
function MPR_Timers:RagingSpiritSummoned()
self.RagingSpiritCount = self.RagingSpiritCount + 1
self.DataTimers[12][5] = self.RagingSpiritCount < 3 and 22 or nil
end
function MPR_Timers:Quake()
--local cd = round(self.DataTimers[12][5],1,true)
--if cd > 0 then self:NewTimer(GetSpellLink(self:GetSpellID("Quake")),cd,"Quake #"..(self.QuakeCount+1)) end
self.DataTimers[12][5] = nil
self.QuakeCount = self.QuakeCount + 1
self.DataTimers[12][2] = self.QuakeCount == 1 and 26 or nil
self.DataTimers[12][3] = self.QuakeCount == 1 and 44 or 32
self.DataTimers[12][4] = self.QuakeCount == 2 and 20 or nil
self.DataTimers[12][5] = nil
self.DataTimers[12][6] = nil
self.Label2:Show() -- Show Defile label
end
function MPR_Timers:FuryOfFrostmourne()
self:Reset()
end
-- TRIAL OF THE CRUSADER
-- 13: Gormok the Impaler
function MPR_Timers:Impale() self.DataTimers[13][1] = 8 end
function MPR_Timers:StaggeringStomp() self.DataTimers[13][2] = 15 end
function MPR_Timers:RisingAnger() self.DataTimers[13][3] = 15 end
-- 14: Jormungar Twins
function MPR_Timers:SlimePool() self.DataTimers[14][1] = 30 end
-- 15:
-- 16:
-- 17:
-- 18:
-- 19:
-- RUBY SANCTUM
-- 20: Saviana Ragefire
function MPR_Timers:SavianaEnrage()
self.DataTimers[20][1] = 45
end
function MPR_Timers:SavianaAirPhase()
self.DataTimers[20][2] = 48
end
-- 21: Baltharus the Warborn
function MPR_Timers:BladeTempest(source)
if not self.BaltharusObjects[source] then
self.BaltharusCount = self.BaltharusCount + 1
self.BaltharusObjects[source] = self.BaltharusCount
end
self.DataTimers[21][self.BaltharusObjects[source]] = 20
end
-- 22: General Zarithrian
function MPR_Timers:ZarithrianCleave()
self.DataTimers[22][1] = 15
end
function MPR_Timers:ZarithrianSummonAdds()
self.DataTimers[22][2] = 42
end
function MPR_Timers:ZarithrianIntimidatingRoar()
self.DataTimers[22][3] = 42
end
-- 23: Halion
function MPR_Timers:MeteorStrike()
self.DataTimers[23][1] = 40
end
function MPR_Timers:FieryCombustion()
self.DataTimers[23][2] = 25
end
function MPR_Timers:PhaseTwo()
self.DataTimers[23][1] = nil
self.DataTimers[23][2] = nil
end
function MPR_Timers:TwilightCutter()
self.DataTimers[23][3] = 25
end
function MPR_Timers:SoulConsumption()
self.DataTimers[23][4] = 20
end
function MPR_Timers:EncounterEnd(ID)
self:Reset()
end
function MPR_Timers:Reset()
self.BossNum = nil
MPR_Timers.Title2:SetText("|cFF00CCFF"..MPR.BossData[MPR_Timers.BossNum or 0]["ENCOUNTER"])
for e,_ in pairs(MPR_Timers.DataTimers) do
for i,_ in pairs(MPR_Timers.DataTimers[e]) do
MPR_Timers.DataTimers[e][i] = nil
end
end
end
MPR_Timers_Updater = CreateFrame("frame", "MPR Timers (Updater)", UIParent)
MPR_Timers_Updater.Interval = 0.5
MPR_Timers_Updater.LastUpdate = 0
MPR_Timers_Updater:SetScript("OnUpdate", function(self, elapsed)
if MPR.Settings["CCL_ONLOAD"] then CombatLogClearEntries() end
if not MPR.Settings["TIMERS"] or GetZoneText() ~= "Icecrown Citadel" and GetMinimapZoneText() ~= "Frostmourne" and GetZoneText() ~= "Trial of the Crusader" and GetZoneText() ~= "The Ruby Sanctum" then
MPR_Timers.Label3:SetText("")
MPR_Timers.Label3:Hide()
MPR_Timers.Label2:SetText("")
MPR_Timers.Label2:Hide()
MPR_Timers.Label1:SetText(not MPR.Settings["TIMERS"] and "Timer system is disabled." or "No timers active.")
MPR_Timers:SetHeight(43)
return
end
MPR_Timers_Updater.LastUpdate = MPR_Timers_Updater.LastUpdate + elapsed
if MPR_Timers_Updater.LastUpdate < MPR_Timers_Updater.Interval then return end
local diff = MPR_Timers_Updater.LastUpdate
MPR_Timers_Updater.LastUpdate = 0
local e = MPR_Timers.BossNum
if e then
MPR_Timers.DataTimers[e] = MPR_Timers.DataTimers[e] or {}
if MPR_Timers.DataTimers[e] then
for i=1,7 do
if MPR_Timers.DataTimers[e][i] then
if MPR_Timers.DataTimers[e][i] and MPR_Timers.DataTimers[e][i] > 0 then
MPR_Timers.DataTimers[e][i] = MPR_Timers.DataTimers[e][i] - diff
if MPR_Timers.DataTimers[e][i] < 0 then
MPR_Timers.DataTimers[e][i] = 0
if e == 2 and i == 1 then
if MPR_Timers.LD_Phase == 2 and MPR_Timers:IsHeroic() and not MPR_Timers.AddsFound then
if MPR_Timers:SearchForAdds() then
MPR_Timers.AddsFound = true
MPR_Timers:WaveSummoned()
end
else
MPR_Timers:WaveSummoned()
end
elseif e == 20 and i == 2 then
MPR_Timers:SavianaAirPhase()
end
end
end
end
end
end
end
MPR_Timers:OnUpdate(diff)
end)
MPR_Timers_Options = CreateFrame("Frame", "MPR Timers (Options)")
function MPR_Timers_Options:Initialize()
self:Hide()
self:SetBackdrop(MPR.Settings["BACKDROP"])
self:SetBackdropColor(unpack(MPR.Settings["BACKDROPCOLOR"]))
self:SetBackdropBorderColor(MPR.Settings["BACKDROPBORDERCOLOR"].R/255, MPR.Settings["BACKDROPBORDERCOLOR"].G/255, MPR.Settings["BACKDROPBORDERCOLOR"].B/255)
self:SetPoint("CENTER",UIParent)
self:SetWidth(600)
self:SetHeight(320)
self:EnableMouse(true)
self:SetMovable(true)
self:RegisterForDrag("LeftButton")
self:SetUserPlaced(true)
self:SetScript("OnDragStart", function(self) self:StartMoving() end)
self:SetScript("OnDragStop", function(self) self:StopMovingOrSizing() end)
self:SetFrameStrata("FULLSCREEN_DIALOG")
self.Title = self:CreateFontString(nil, "OVERLAY", "GameTooltipText")
self.Title:SetPoint("TOP", 0, -8)
self.Title:SetTextColor(190/255, 190/255, 190/255)
self.Title:SetText("|cFF"..MPR.Colors["TITLE"].."MP Reporter|r - Timer options")
self.Title:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE")
self.Title:SetShadowOffset(1, -1)
self.CloseButton = CreateFrame("button","BtnClose", self, "UIPanelButtonTemplate")
self.CloseButton:SetHeight(14)
self.CloseButton:SetWidth(14)
self.CloseButton:SetPoint("TOPRIGHT", -8, -8)
self.CloseButton:SetText("x")
self.CloseButton:SetScript("OnClick", function(self) MPR_Timers_Options:Hide() end)
self:NewFS("Timer announcing:","FFFFFF",10,-16, 10)
self:NewCB("Self", "1E90FF", 105, -12, "T_SELF") -- [ ] Self
self:NewCB("Raid", "EE7600", 145, -12, "T_RAID") -- [ ] Raid
--[[ Lord Marrowgar ]]--
self:NewFS("Lord Marrowgar","00CCFF",10,-30,10)
self:NewFS("{Bone Spike Graveyard}:","FFFFFF",14,-42,9)
self:NewCB("5s", "FFFFFF", 144, -38, "1:1:5")
self:NewCB("3s", "FFFFFF", 176, -38, "1:1:3")
self:NewFS("{Bone Storm}:","FFFFFF",14,-54,9)
self:NewCB("10s", "FFFFFF", 107, -50, "1:2:10")
self:NewCB("5s", "FFFFFF", 144, -50, "1:2:5")
self:NewCB("5s", "FFFFFF", 176, -50, "1:2:5")
--[[ Lady Deathwhisper ]]--
self:NewFS("Lady Deathwhisper","00CCFF",10,-68,10)
self:NewFS("Summon Adds:","FFFFFF",14,-80,9)
self:NewCB("10s", "FFFFFF", 107, -76, "2:1:10")
self:NewCB("5s", "FFFFFF", 144, -76, "2:1:5")
self:NewCB("3s", "FFFFFF", 176, -76, "2:1:3")
self:NewFS("{Summon Vengeful Shade}:","FFFFFF",14,-92,9)
self:NewCB("10s", "FFFFFF", 107, -88, "2:2:10")
self:NewCB("5s", "FFFFFF", 144, -88, "2:2:5")
self:NewCB("3s", "FFFFFF", 176, -88, "2:2:3")
--[[ Gunship Battle ]]--
self:NewFS("Gunship Battle","00CCFF",10,-108,10)
self:NewFS("{Below Zero}:","FFFFFF",14,-120,9)
self:NewCB("10s", "FFFFFF", 107, -116, "3:1:10")
self:NewCB("5s", "FFFFFF", 144, -116, "3:1:5")
self:NewCB("3s", "FFFFFF", 176, -116, "3:1:3")
--[[ Deathbringer Saurfang ]]--
self:NewFS("Deathbringer Saurfang","00CCFF",10,-136,10)
self:NewFS("{Rune of Blood}:","FFFFFF",14,-148,9)
self:NewCB("10s", "FFFFFF", 107, -144, "4:1:10")
self:NewCB("5s", "FFFFFF", 144, -144, "4:1:5")
self:NewCB("3s", "FFFFFF", 176, -144, "4:1:3")
--[[ Festergut ]]--
self:NewFS("Festergut","00CCFF",10,-166,10)
self:NewFS("{Gas Spore}:","FFFFFF",14,-178,9)
self:NewCB("10s", "FFFFFF", 107, -174, "5:1:10")
self:NewCB("5s", "FFFFFF", 144, -174, "5:1:5")
self:NewCB("3s", "FFFFFF", 176, -174, "5:1:3")
self:NewFS("{Gastric Bloat}:","FFFFFF",14,-190,9)
self:NewCB("10s", "FFFFFF", 107, -186, "5:2:10")
self:NewCB("5s", "FFFFFF", 144, -186, "5:2:5")
self:NewCB("3s", "FFFFFF", 176, -186, "5:2:3")
--[[ Rotface ]]--
self:NewFS("Rotface","00CCFF",10,-206,10)
self:NewFS("{Slime Spray}:","FFFFFF",14,-218,9)
self:NewCB("10s", "FFFFFF", 107, -214, "6:1:10")
self:NewCB("5s", "FFFFFF", 144, -214, "6:1:5")
self:NewCB("3s", "FFFFFF", 176, -214, "6:1:3")
self:NewFS("{Mutated Infection}:","FFFFFF",14,-230,9)
self:NewCB("5s", "FFFFFF", 144, -226, "6:2:5")
self:NewCB("3s", "FFFFFF", 176, -226, "6:2:3")
self:NewFS("{Vile Gas}:","FFFFFF",14,-242,9)
self:NewCB("10s", "FFFFFF", 107, -238, "6:2:10")
self:NewCB("5s", "FFFFFF", 144, -238, "6:2:5")
self:NewCB("3s", "FFFFFF", 176, -238, "6:2:3")
--[[ Professor Putricide ]]--
self:NewFS("Professor Putricide","00CCFF",10,-258,10)
self:NewFS("{Unstable Experiment}:","FFFFFF",14,-270,9)
self:NewCB("10s", "FFFFFF", 144, -266, "7:1:10:7")
self:NewCB("5s", "FFFFFF", 176, -266, "7:1:5:7")
self:NewFS("{Malleable Goo}:","FFFFFF",14,-282,9)
self:NewCB("10s", "FFFFFF", 107, -278, "7:2:10:8")
self:NewCB("5s", "FFFFFF", 144, -278, "7:2:5:8")
self:NewCB("3s", "FFFFFF", 176, -278, "7:2:3:8")
self:NewFS("{Choking Gas Bomb}:","FFFFFF",14,-294,9)
self:NewCB("10s", "FFFFFF", 119, -290, "7:2:10:2")
self:NewCB("5s", "FFFFFF", 153, -290, "7:2:5:2")
self:NewCB("3s", "FFFFFF", 182, -290, "7:2:3:2")
--[[ Blood Prince Council ]]--
self:NewFS("Blood Prince Council","00CCFF", 210,-30,10)
self:NewFS("Target Switch:","FFFFFF",214,-42,9)
self:NewCB("10s", "FFFFFF", 336, -38, "8:1:10:3")
self:NewCB("5s", "FFFFFF", 376, -38, "8:1:5:3")
self:NewFS("{Empowered Shock Vortex}:","FFFFFF", 214,-54,9)
self:NewCB("5s", "FFFFFF", 376, -50, "8:2:5")
self:NewFS("{Shadow Resonance}:","FFFFFF", 214,-66,9)
self:NewCB("5s", "FFFFFF", 376, -62, "8:2:5")
--[[ Blood Queen Lana'thel ]]--
self:NewFS("Blood Queen Lana'thel","00CCFF",210,-82,10)
self:NewFS("{Incite Terror}:","FFFFFF",214,-94,9)
self:NewCB("20s", "FFFFFF", 300, -90, "9:1:20:3")
self:NewCB("10s", "FFFFFF", 338, -90, "9:1:10:3")
self:NewCB("5s", "FFFFFF", 376, -90, "9:1:5:3")
self:NewFS("{Swarming Shadows}:","FFFFFF",214,-106,9)
self:NewCB("10s", "FFFFFF", 318, -102, "9:2:10:7")
self:NewCB("5s", "FFFFFF", 352, -102, "9:2:5:7")
self:NewCB("3s", "FFFFFF", 380, -102, "9:2:3:7")
self:NewFS("{Berserk}:","FFFFFF",214,-118,9)
self:NewCB("30s", "FFFFFF", 300, -114, "9:3:10:8")
self:NewCB("20s", "FFFFFF", 338, -114, "9:3:5:8")
self:NewCB("10s", "FFFFFF", 376, -114, "9:3:3:8")
--[[ Valithria Dreamwalker ]]--
self:NewFS("Valithria Dreamwalker","00CCFF",210,-134,10)
self:NewFS("{Summon Portal}:","FFFFFF",214,-146,9)
self:NewCB("10s", "FFFFFF", 338, -142, "10:1:10:3")
self:NewCB("5s", "FFFFFF", 376, -142, "10:1:5:3")
--[[ Sindragosa ]]--
self:NewFS("Sindragosa","00CCFF",210,-162,10)
self:NewFS("{Blistering Cold}:","FFFFFF",214,-174,9)
self:NewCB("10s", "FFFFFF", 306, -170, "11:1:10:8")
self:NewCB("5s", "FFFFFF", 344, -170, "11:1:5:8")