-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHakkar.lua
411 lines (371 loc) · 21.2 KB
/
Hakkar.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
------------------------------
-- Are you local? --
------------------------------
local boss = AceLibrary("Babble-Boss-2.2")["Hakkar"]
local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss)
----------------------------
-- Localization --
----------------------------
L:RegisterTranslations("enUS", function() return {
engage_trigger = "FACE THE WRATH OF THE SOULFLAYER!",
siphon_trigger = "Hakkar gains Blood Siphon.",
poisonousblood_trigger = "You are afflicted by Poisonous Blood.",
mindcontrolyou_trigger = "You are afflicted by Cause Insanity.",
mindcontrolother_trigger = "(.+) is afflicted by Cause Insanity.",
flee_trigger = "Fleeing will do you no good, mortals!",
aspectofthekal_trigger = "Hakkar gains Aspect of Thekal.",
aspectofthekalend_trigger = "Aspect of Thekal fades from Hakkar.",
aspectofmarliyou_trigger = "You are afflicted by Aspect of Mar'li.",
aspectofmarliyouimmune_trigger = "Hakkar 's Aspect of Mar'li failed. You are immune.",
aspectofmarliother_trigger = "(.+) is afflicted by Aspect of Mar'li.",
aspectofmarliotherimmune_trigger = "Hakkar 's Aspect of Mar'li fails. (.+) is immune.",
aspectofmarligeneralavoid_trigger = "Hakkar 's Aspect of Mar'li",
aspectofjeklikyou_trigger = "You are afflicted by Aspect of Jeklik.",
aspectofjeklikyouimmune_trigger = "Hakkar 's Aspect of Jeklik failed. You are immune.",
aspectofjeklikother_trigger = "(.+) is afflicted by Aspect of Jeklik.",
aspectofjeklikotherimmune_trigger = "Hakkar 's Aspect of Jeklik fails. (.+) is immune.",
aspectofjeklikgeneralavoid_trigger = "Hakkar 's Aspect of Jeklik",
aspectofarlokkyou_trigger = "You are afflicted by Aspect of Arlokk.",
aspectofarlokkyouimmune_trigger = "Hakkar 's Aspect of Arlokk failed. You are immune.",
aspectofarlokkother_trigger = "(.+) is afflicted by Aspect of Arlokk.",
aspectofarlokkotherimmune_trigger = "Hakkar 's Aspect of Arlokk fails. (.+) is immune.",
aspectofarlokkgeneralavoid_trigger = "Hakkar 's Aspect of Arlokk",
aspectofvenoxisyou_trigger = "Hakkar 's Aspect of Venoxis hits you for",
aspectofvenoxisyouresist_trigger = "Hakkar 's Aspect of Venoxis was resisted.",
aspectofvenoxisother_trigger = "Hakkar 's Aspect of Venoxis hits",
aspectofvenoxisotherresist_trigger = "Hakkar 's Aspect of Venoxis was resisted by",
siphon_warning = "Blood Siphon in %d seconds!",
siphon_message = "Blood Siphon - next one in 90 seconds!",
enrage5minutes_message = "Enrage in 5 minutes!",
enrage1minute_message = "Enrage in 1 minute!",
enrageseconds_message = "Enrage in %d seconds!",
mindcontrol_message = "%s is mindcontrolled!",
mindcontrol_message_you = "You are mindcontrolled!",
mindcontrol_bar = "MC: %s",
firstmc_bar = "First MC",
nextmc_bar = "Next MC",
enrage_bar = "Enrage",
siphon_bar = "Blood Siphon",
aspectthekalnext_bar = "Next Frenzy",
aspectthekal_bar = "Frenzy - Aspect of Thekal",
aspectthekal_ann = "Frenzy! Tranq now!",
aspectmarli_bar = "Next Stun",
aspectmarlidebuff_bar = "Stun: %s - Aspect of Mar'li",
aspectjeklik_bar = "Next Silence",
aspectjeklikdebuff_bar = "Silence - Aspect of Jeklik",
aspectarlokk_bar = "Next Vanish",
aspectarlokkdebuff_bar = "Vanish: %s - Aspect of Arlokk",
aspectvenoxis_bar = "Next Poison",
aspectvenoxisdebuff_bar = "Poison - Aspect of Venoxis",
cmd = "Hakkar",
siphon_cmd = "siphon",
siphon_name = "Blood Siphon",
siphon_desc = "Shows bars, warnings and timers for Hakkar's Blood Siphon.",
enrage_cmd = "enrage",
enrage_name = "Enrage",
enrage_desc = "Lets you know when the 10 minutes are up!",
mc_cmd = "mc",
mc_name = "Mind Control",
mc_desc = "Alert when players have Cause Insanity.",
aspectjeklik_cmd = "aspectjeklik",
aspectjeklik_name = "Aspect of Jeklik",
aspectjeklik_desc = "Warnings for the extra ability Hakkar gains when High Priestess Jeklik is still alive.",
aspectvenoxis_cmd = "aspectvenoxis",
aspectvenoxis_name = "Aspect of Venoxis",
aspectvenoxis_desc = "Warnings for the extra ability Hakkar gains when High Priest Venoxis is still alive.",
aspectmarli_cmd = "aspectmarli",
aspectmarli_name = "Aspect of Mar'li",
aspectmarli_desc = "Warnings for the extra ability Hakkar gains when High Priestess Mar'li is still alive.",
aspectthekal_cmd = "aspectthekal",
aspectthekal_name = "Aspect of Thekal",
aspectthekal_desc = "Warnings for the extra ability Hakkar gains when High Priest Thekal is still alive.",
aspectarlokk_cmd = "aspectarlokk",
aspectarlokk_name = "Aspect of Arlokk",
aspectarlokk_desc = "Warnings for the extra ability Hakkar gains when High Priestess Arlokk is still alive.",
puticon_cmd = "puticon",
puticon_name = "Raid icon on MCed players",
puticon_desc = "Place a raid icon on the player with Cause Insanity.\n\n(Requires assistant or higher)",
} end)
L:RegisterTranslations("deDE", function() return {
engage_trigger = "FACE THE WRATH OF THE SOULFLAYER!",
siphon_trigger = "Hakkar gains Blood Siphon.",
poisonousblood_trigger = "You are afflicted by Poisonous Blood.",
mindcontrolyou_trigger = "You are afflicted by Cause Insanity.",
mindcontrolother_trigger = "(.+) is afflicted by Cause Insanity.",
flee_trigger = "Fleeing will do you no good, mortals!",
aspectofthekal_trigger = "Hakkar gains Aspect of Thekal.",
aspectofthekalend_trigger = "Aspect of Thekal fades from Hakkar.",
aspectofmarliyou_trigger = "You are afflicted by Aspect of Mar'li.",
aspectofmarliyouimmune_trigger = "Hakkar 's Aspect of Mar'li failed. You are immune.",
aspectofmarliother_trigger = "(.+) is afflicted by Aspect of Mar'li.",
aspectofmarliotherimmune_trigger = "Hakkar 's Aspect of Mar'li fails. (.+) is immune.",
aspectofmarligeneralavoid_trigger = "Hakkar 's Aspect of Mar'li",
aspectofjeklikyou_trigger = "You are afflicted by Aspect of Jeklik.",
aspectofjeklikyouimmune_trigger = "Hakkar 's Aspect of Jeklik failed. You are immune.",
aspectofjeklikother_trigger = "(.+) is afflicted by Aspect of Jeklik.",
aspectofjeklikotherimmune_trigger = "Hakkar 's Aspect of Jeklik fails. (.+) is immune.",
aspectofjeklikgeneralavoid_trigger = "Hakkar 's Aspect of Jeklik",
aspectofarlokkyou_trigger = "You are afflicted by Aspect of Arlokk.",
aspectofarlokkyouimmune_trigger = "Hakkar 's Aspect of Arlokk failed. You are immune.",
aspectofarlokkother_trigger = "(.+) is afflicted by Aspect of Arlokk.",
aspectofarlokkotherimmune_trigger = "Hakkar 's Aspect of Arlokk fails. (.+) is immune.",
aspectofarlokkgeneralavoid_trigger = "Hakkar 's Aspect of Arlokk",
aspectofvenoxisyou_trigger = "Hakkar 's Aspect of Venoxis hits you for",
aspectofvenoxisyouresist_trigger = "Hakkar 's Aspect of Venoxis was resisted.",
aspectofvenoxisother_trigger = "Hakkar 's Aspect of Venoxis hits",
aspectofvenoxisotherresist_trigger = "Hakkar 's Aspect of Venoxis was resisted by",
siphon_warning = "Blood Siphon in %d seconds!",
siphon_message = "Blood Siphon - next one in 90 seconds!",
enrage5minutes_message = "Enrage in 5 minutes!",
enrage1minute_message = "Enrage in 1 minute!",
enrageseconds_message = "Enrage in %d seconds!",
mindcontrol_message = "%s is mindcontrolled!",
mindcontrol_message_you = "You are mindcontrolled!",
mindcontrol_bar = "MC: %s",
firstmc_bar = "First MC",
nextmc_bar = "Next MC",
enrage_bar = "Enrage",
siphon_bar = "Blood Siphon",
aspectthekalnext_bar = "Next Frenzy",
aspectthekal_bar = "Frenzy - Aspect of Thekal",
aspectthekal_ann = "Frenzy! Tranq now!",
aspectmarli_bar = "Next Stun",
aspectmarlidebuff_bar = "Stun: %s - Aspect of Mar'li",
aspectjeklik_bar = "Next Silence",
aspectjeklikdebuff_bar = "Silence - Aspect of Jeklik",
aspectarlokk_bar = "Next Vanish",
aspectarlokkdebuff_bar = "Vanish: %s - Aspect of Arlokk",
aspectvenoxis_bar = "Next Poison",
aspectvenoxisdebuff_bar = "Poison - Aspect of Venoxis",
cmd = "Hakkar",
siphon_cmd = "siphon",
siphon_name = "Blood Siphon",
siphon_desc = "Shows bars, warnings and timers for Hakkar's Blood Siphon.",
enrage_cmd = "enrage",
enrage_name = "Enrage",
enrage_desc = "Lets you know when the 10 minutes are up!",
mc_cmd = "mc",
mc_name = "Mind Control",
mc_desc = "Alert when players have Cause Insanity.",
aspectjeklik_cmd = "aspectjeklik",
aspectjeklik_name = "Aspect of Jeklik",
aspectjeklik_desc = "Warnings for the extra ability Hakkar gains when High Priestess Jeklik is still alive.",
aspectvenoxis_cmd = "aspectvenoxis",
aspectvenoxis_name = "Aspect of Venoxis",
aspectvenoxis_desc = "Warnings for the extra ability Hakkar gains when High Priest Venoxis is still alive.",
aspectmarli_cmd = "aspectmarli",
aspectmarli_name = "Aspect of Mar'li",
aspectmarli_desc = "Warnings for the extra ability Hakkar gains when High Priestess Mar'li is still alive.",
aspectthekal_cmd = "aspectthekal",
aspectthekal_name = "Aspect of Thekal",
aspectthekal_desc = "Warnings for the extra ability Hakkar gains when High Priest Thekal is still alive.",
aspectarlokk_cmd = "aspectarlokk",
aspectarlokk_name = "Aspect of Arlokk",
aspectarlokk_desc = "Warnings for the extra ability Hakkar gains when High Priestess Arlokk is still alive.",
puticon_cmd = "puticon",
puticon_name = "Raid icon on MCed players",
puticon_desc = "Place a raid icon on the player with Cause Insanity.\n\n(Requires assistant or higher)",
} end)
----------------------------------
-- Module Declaration --
----------------------------------
BigWigsHakkar = BigWigs:NewModule(boss)
BigWigsHakkar.zonename = AceLibrary("Babble-Zone-2.2")["Zul'Gurub"]
BigWigsHakkar.enabletrigger = boss
BigWigsHakkar.bossSync = "Hakkar"
BigWigsHakkar.toggleoptions = { "mc", "puticon", "siphon", "enrage", -1, "aspectjeklik", "aspectvenoxis", "aspectmarli", "aspectthekal", "aspectarlokk", "bosskill" }
BigWigsHakkar.revision = tonumber(string.sub("$Revision: 11201 $", 12, -3))
------------------------------
-- Initialization --
------------------------------
function BigWigsHakkar:OnEnable()
self.started = nil
self:RegisterEvent("CHAT_MSG_MONSTER_YELL")
self:RegisterEvent("CHAT_MSG_SPELL_AURA_GONE_OTHER")
self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS")
self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE", "Self")
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE", "Self")
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE", "Others")
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE", "Others")
self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE")
self:RegisterEvent("BigWigs_RecvSync");
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarBloodSiphon", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectJeklik", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectArlokk", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectArlokkAvoid", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectVenoxis", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectMarli", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectMarliAvoid", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectThekalStart", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarAspectThekalStop", 5);
self:TriggerEvent("BigWigs_ThrottleSync", "HakkarMC", 5);
end
------------------------------
-- Event Handlers --
------------------------------
function BigWigsHakkar:CHAT_MSG_MONSTER_YELL(msg)
if string.find(msg, L["engage_trigger"]) then
self:SendEngageSync()
elseif msg == L["flee_trigger"] then
self:TriggerEvent("BigWigs_RemoveRaidIcon")
self:TriggerEvent("BigWigs_RebootModule", self)
end
end
function BigWigsHakkar:CHAT_MSG_SPELL_AURA_GONE_OTHER(msg)
if msg == L["aspectofthekalend_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectThekalStop")
end
end
function BigWigsHakkar:Self(msg)
if msg == L["mindcontrolyou_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarMC "..UnitName("player"))
elseif msg == L["aspectofjeklikyou_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectJeklik")
elseif msg == L["aspectofmarliyou_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectMarli "..UnitName("player"))
elseif msg == L["aspectofarlokkyou_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectArlokk "..UnitName("player"))
elseif string.find(msg, L["aspectofvenoxisyou_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectVenoxis")
elseif msg == L["aspectofjeklikyouimmune_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectJeklik")
elseif msg == L["aspectofmarliyouimmune_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectMarliAvoid")
elseif msg == L["aspectofarlokkyouimmune_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectArlokkAvoid")
elseif msg == L["aspectofvenoxisyouresist_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectVenoxis")
elseif string.find(msg, L["aspectofjeklikgeneralavoid_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectJeklik")
elseif string.find(msg, L["aspectofmarligeneralavoid_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectMarliAvoid")
elseif string.find(msg, L["aspectofarlokkgeneralavoid_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectArlokkAvoid")
elseif string.find(msg, L["poisonousblood_trigger"]) then
self:TriggerEvent("BigWigs_HideIcon", "Interface\\Icons\\Ability_Hunter_Pet_WindSerpent")
end
end
function BigWigsHakkar:Others(msg)
local _, _, aspectofmarliother, _ = string.find(msg, L["aspectofmarliother_trigger"])
local _, _, aspectofmarliotherimmune, _ = string.find(msg, L["aspectofmarliotherimmune_trigger"])
local _, _, aspectofjeklikother, _ = string.find(msg, L["aspectofjeklikother_trigger"])
local _, _, aspectofjeklikotherimmune, _ = string.find(msg, L["aspectofjeklikotherimmune_trigger"])
local _, _, aspectofarlokkother, _ = string.find(msg, L["aspectofarlokkother_trigger"])
local _, _, aspectofarlokkotherimmune, _ = string.find(msg, L["aspectofarlokkotherimmune_trigger"])
if aspectofmarliother then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectMarli "..aspectofmarliother)
elseif aspectofmarliotherimmune then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectMarliAvoid")
elseif string.find(msg, L["aspectofmarligeneralavoid_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectMarliAvoid")
elseif aspectofjeklikother then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectJeklik")
elseif aspectofjeklikotherimmune then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectJeklik")
elseif string.find(msg, L["aspectofjeklikgeneralavoid_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectJeklik")
elseif aspectofarlokkother then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectArlokk "..aspectofarlokkother)
elseif aspectofarlokkotherimmune then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectArlokkAvoid")
elseif string.find(msg, L["aspectofarlokkgeneralavoid_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectArlokkAvoid")
elseif string.find(msg, L["aspectofvenoxisother_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectVenoxis")
elseif string.find(msg, L["aspectofvenoxisotherresist_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectVenoxis")
end
end
function BigWigsHakkar:CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS(msg)
if msg == L["siphon_trigger"] then
self:TriggerEvent("BigWigs_SendSync", "HakkarBloodSiphon")
elseif string.find(msg, L["aspectofthekal_trigger"]) then
self:TriggerEvent("BigWigs_SendSync", "HakkarAspectThekalStart")
end
end
function BigWigsHakkar:CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE(msg)
local _, _, mindcontrolother, _ = string.find(msg, L["mindcontrolother_trigger"])
if mindcontrolother then
self:TriggerEvent("BigWigs_SendSync", "HakkarMC "..mindcontrolother)
end
end
function BigWigsHakkar:BigWigs_RecvSync(sync, rest, nick)
if not self.started and sync == "BossEngaged" and rest == self.bossSync then
self:StartFight()
if self.db.profile.enrage then
self:TriggerEvent("BigWigs_StartBar", self, L["enrage_bar"], 600, "Interface\\Icons\\Spell_Shadow_UnholyFrenzy")
self:ScheduleEvent("BigWigs_Message", 300, L["enrage5minutes_message"], "Urgent")
self:ScheduleEvent("BigWigs_Message", 540, L["enrage1minute_message"], "Urgent")
self:ScheduleEvent("BigWigs_Message", 570, string.format(L["enrageseconds_message"], 30), "Urgent")
self:ScheduleEvent("BigWigs_Message", 590, string.format(L["enrageseconds_message"], 10), "Attention")
end
if self.db.profile.siphon then
self:TriggerEvent("BigWigs_StartBar", self, L["siphon_bar"], 89, "Interface\\Icons\\Spell_Shadow_LifeDrain")
self:ScheduleEvent("BigWigs_Message", 59, string.format(L["siphon_warning"], 30), "Urgent")
self:ScheduleEvent("BigWigs_ShowIcon", 59, "Interface\\Icons\\Ability_Hunter_Pet_WindSerpent", 30)
self:ScheduleEvent("BigWigs_Message", 79, string.format(L["siphon_warning"], 10), "Attention")
end
if self.db.profile.mc then
self:TriggerEvent("BigWigs_StartBar", self, L["firstmc_bar"], 17, "Interface\\Icons\\Spell_Shadow_ShadowWordDominate")
end
elseif sync == "HakkarBloodSiphon" then
self:TriggerEvent("BigWigs_HideIcon", "Interface\\Icons\\Ability_Hunter_Pet_WindSerpent") -- just to be safe, shouldn't be needed
if self.db.profile.siphon then
self:TriggerEvent("BigWigs_StartBar", self, L["siphon_bar"], 90, "Interface\\Icons\\Spell_Shadow_LifeDrain")
self:ScheduleEvent("BigWigs_Message", 60, string.format(L["siphon_warning"], 30), "Urgent")
self:ScheduleEvent("BigWigs_ShowIcon", 60, "Interface\\Icons\\Ability_Hunter_Pet_WindSerpent", 30)
-- before I display that I need to figure out, how to track when the player gained the Poisonous Blood - this should hide the icon again
self:ScheduleEvent("BigWigs_Message", 80, string.format(L["siphon_warning"], 10), "Attention")
end
if self.db.profile.aspectjeklik then
self:TriggerEvent("BigWigs_StopBar", self, L["aspectjeklik_bar"])
end
if self.db.profile.aspectvenoxis then
self:TriggerEvent("BigWigs_StopBar", self, L["aspectvenoxis_bar"])
end
if self.db.profile.aspectmarli then
self:TriggerEvent("BigWigs_StopBar", self, L["aspectmarli_bar"])
end
if self.db.profile.aspectarlokk then
self:TriggerEvent("BigWigs_StopBar", self, L["aspectarlokk_bar"])
end
if self.db.profile.aspectthekal then
self:TriggerEvent("BigWigs_StopBar", self, L["aspectthekalnext_bar"])
end
elseif sync == "HakkarAspectJeklik" and self.db.profile.aspectjeklik then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectjeklik_bar"], 10, "Interface\\Icons\\Spell_Shadow_Teleport", true, "Orange")
self:TriggerEvent("BigWigs_StartBar", self, L["aspectjeklikdebuff_bar"], 5, "Interface\\Icons\\Spell_Shadow_Teleport", true, "Orange")
elseif sync == "HakkarAspectArlokk" and self.db.profile.aspectarlokk then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectarlokk_bar"], 10, "Interface\\Icons\\Ability_Vanish", true, "Blue")
self:TriggerEvent("BigWigs_StartBar", self, string.format(L["aspectarlokkdebuff_bar"], rest), 2, "Interface\\Icons\\Ability_Vanish", true, "Blue")
elseif sync == "HakkarAspectArlokkAvoid" and self.db.profile.aspectarlokk then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectarlokk_bar"], 10, "Interface\\Icons\\Ability_Vanish", true, "Blue")
elseif sync == "HakkarAspectVenoxis" and self.db.profile.aspectvenoxis then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectvenoxis_bar"], 8, "Interface\\Icons\\Spell_Nature_CorrosiveBreath", true, "Green")
self:TriggerEvent("BigWigs_StartBar", self, L["aspectvenoxisdebuff_bar"], 10, "Interface\\Icons\\Spell_Nature_CorrosiveBreath", true, "Green")
elseif sync == "HakkarAspectMarli" and self.db.profile.aspectmarli then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectmarli_bar"], 10, "Interface\\Icons\\Ability_Smash", true, "Yellow")
self:TriggerEvent("BigWigs_StartBar", self, string.format(L["aspectmarlidebuff_bar"], rest), 6, "Interface\\Icons\\Ability_Smash", true, "Yellow")
elseif sync == "HakkarAspectMarliAvoid" and self.db.profile.aspectmarli then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectmarli_bar"], 10, "Interface\\Icons\\Ability_Smash", true, "Yellow")
elseif sync == "HakkarAspectThekalStart" and self.db.profile.aspectthekal then
self:TriggerEvent("BigWigs_StartBar", self, L["aspectthekalnext_bar"], 15, "Interface\\Icons\\Ability_Druid_ChallangingRoar", true, "Black")
self:TriggerEvent("BigWigs_StartBar", self, L["aspectthekal_bar"], 8, "Interface\\Icons\\Ability_Druid_ChallangingRoar", true, "Black")
self:TriggerEvent("BigWigs_Message", L["aspectthekal_ann"], "Important", true, "Alarm")
elseif sync == "HakkarAspectThekalStop" and self.db.profile.aspectthekal then
self:TriggerEvent("BigWigs_StopBar", self, L["aspectthekal_bar"])
elseif sync == "HakkarMC" then
if self.db.profile.mc then
self:ScheduleEvent("BigWigs_StartBar", 10, self, L["nextmc_bar"], 11, "Interface\\Icons\\Spell_Shadow_ShadowWordDominate")
self:TriggerEvent("BigWigs_StartBar", self, string.format(L["mindcontrol_bar"], rest), 10, "Interface\\Icons\\Spell_Shadow_ShadowWordDominate", true, "White")
if rest == UnitName("player") then
self:TriggerEvent("BigWigs_Message", L["mindcontrol_message_you"], "Attention", true, "Alarm")
else
self:TriggerEvent("BigWigs_Message", string.format(L["mindcontrol_message"], rest), "Attention")
end
end
if self.db.profile.puticon then
self:TriggerEvent("BigWigs_SetRaidIcon", rest)
end
end
end