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
982 B
39 lines
982 B
local mod = DBM:NewMod(108, "DBM-Party-Cataclysm", 1, 66)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod.statTypes = "normal,heroic,timewalker"
|
|
|
|
mod:SetRevision("20210922153837")
|
|
mod:SetCreatureID(39700)
|
|
mod:SetEncounterID(1037)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_AURA_APPLIED 76031",
|
|
"SPELL_CAST_SUCCESS 76028"
|
|
)
|
|
|
|
local warnTerrifyingRoar = mod:NewSpellAnnounce(76028, 2)
|
|
local warnMagmaSpit = mod:NewTargetNoFilterAnnounce(76031, 3)
|
|
|
|
local timerTerrifyingRoarCD = mod:NewCDTimer(30, 76028)
|
|
local timerMagmaSpit = mod:NewTargetTimer(9, 76031)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerTerrifyingRoarCD:Start(-delay)
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args.spellId == 76031 then
|
|
warnMagmaSpit:Show(args.destName)
|
|
timerMagmaSpit:Start(args.destName)
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args.spellId == 76028 then
|
|
warnTerrifyingRoar:Show()
|
|
timerTerrifyingRoarCD:Start()
|
|
end
|
|
end
|
|
|