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.
38 lines
922 B
38 lines
922 B
local mod = DBM:NewMod(114, "DBM-Party-Cataclysm", 8, 68)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod.statTypes = "normal,heroic,timewalker"
|
|
|
|
mod:SetRevision("20230309000244")
|
|
mod:SetCreatureID(43878)
|
|
mod:SetEncounterID(1043)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 86340",
|
|
"RAID_BOSS_EMOTE"
|
|
)
|
|
|
|
local warnSummonTempest = mod:NewSpellAnnounce(86340, 2)
|
|
|
|
local timerSummonTempest = mod:NewCDTimer(16.8, 86340, nil, nil, nil, 1)
|
|
local timerShield = mod:NewNextTimer(30.5, 86292, nil, nil, nil, 6)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerSummonTempest:Start(-delay)
|
|
timerShield:Start(24-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args.spellId == 86340 then
|
|
warnSummonTempest:Show()
|
|
timerSummonTempest:Start()
|
|
end
|
|
end
|
|
|
|
function mod:RAID_BOSS_EMOTE(msg)
|
|
if msg == L.Retract or msg:find(L.Retract) then
|
|
timerShield:Start()
|
|
end
|
|
end
|
|
|