You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
998 B
39 lines
998 B
local mod = DBM:NewMod(625, "DBM-Party-WotLK", 9, 282)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20211127000514")
|
|
mod:SetCreatureID(27656)
|
|
mod:SetEncounterID(2013)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_AURA_APPLIED 51162 51170"
|
|
)
|
|
|
|
local warningShift = mod:NewSpellAnnounce(51162, 4)
|
|
local warningShiftEnd = mod:NewEndAnnounce(51162, 1)
|
|
local warningEnraged = mod:NewSpellAnnounce(51170, 3)
|
|
|
|
local timerEnraged = mod:NewBuffActiveTimer(12, 51170, nil, nil, nil, 6)
|
|
local timerShift = mod:NewBuffActiveTimer(18, 51162, nil, nil, nil, 6)
|
|
|
|
|
|
function mod:OnCombatEnd(wipe)
|
|
if not wipe then
|
|
if DBT:GetBar(L.MakeitCountTimer) then
|
|
DBT:CancelBar(L.MakeitCountTimer)
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args.spellId == 51162 then
|
|
warningShift:Show()
|
|
warningShiftEnd:Schedule(13)
|
|
timerShift:Start()
|
|
elseif args.spellId == 51170 then
|
|
warningEnraged:Show()
|
|
timerEnraged:Start()
|
|
end
|
|
end
|
|
|