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.

48 lines
1.3 KiB

local mod = DBM:NewMod(285, "DBM-Party-Cataclysm", 12, 184)
local L = mod:GetLocalizedStrings()
mod.statTypes = "heroic,timewalker"
mod:SetRevision("20200912135206")
mod:SetCreatureID(54445)
mod:SetEncounterID(1883)
mod:SetModelID(38802)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 101927 101812",
"SPELL_DAMAGE 101980"
)
local warnFrostBlades = mod:NewSpellAnnounce(101339, 3)
local specWarnFlarecore = mod:NewSpecialWarningSpell(101927, nil, nil, nil, 2, 2)
local timerFlarecore = mod:NewCDTimer(20, 101927, nil, nil, nil, 5)
local timerFlarecoreDetonate = mod:NewTimer(10, "TimerFlarecoreDetonate", 101927, nil, nil, 2)
local timerFrostBlades = mod:NewNextTimer(25, 101339)
function mod:OnCombatStart(delay)
timerFlarecore:Start(16)
timerFrostBlades:Start(21)
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 101927 then
specWarnFlarecore:Show()
specWarnFlarecore:Play("specialsoon")
timerFlarecore:Start()
timerFlarecoreDetonate:Start()
elseif args.spellId == 101812 then -- Frost Blades is cast immediately after Blink (Frost Blades = 3 events, Blink = 1 event)
warnFrostBlades:Show()
timerFrostBlades:Start()
end
end
function mod:SPELL_DAMAGE(_, _, _, _, _, _, _, _, spellId)
if spellId == 101980 then
timerFlarecoreDetonate:Cancel()
end
end