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.
45 lines
1.3 KiB
45 lines
1.3 KiB
local mod = DBM:NewMod(463, "DBM-Party-Vanilla", 12, 237)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20221029204017")
|
|
mod:SetCreatureID(5709)
|
|
mod:SetEncounterID(493)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_SUCCESS 12890 12533 24375",
|
|
"SPELL_AURA_APPLIED 12890"
|
|
)
|
|
|
|
local warningDeepSlumber = mod:NewTargetNoFilterAnnounce(12890, 2)
|
|
local warningAcidBreath = mod:NewSpellAnnounce(12533, 2)
|
|
local warningWarStomp = mod:NewSpellAnnounce(24375, 2)
|
|
|
|
local timerDeepSlumberCD = mod:NewAITimer(180, 12890, nil, nil, nil, 3, nil, DBM_COMMON_L.MAGIC_ICON)
|
|
local timerAcidBreathCD = mod:NewAITimer(180, 12533, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
|
|
local timerWarStompCD = mod:NewAITimer(180, 24375, nil, nil, nil, 2)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerDeepSlumberCD:Start(1-delay)
|
|
timerAcidBreathCD:Start(1-delay)
|
|
timerWarStompCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args.spellId == 12890 then
|
|
timerDeepSlumberCD:Start()
|
|
elseif args.spellId == 12533 then
|
|
warningAcidBreath:Show()
|
|
timerAcidBreathCD:Start()
|
|
elseif args.spellId == 24375 then
|
|
warningWarStomp:Show()
|
|
timerWarStompCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args.spellId == 12890 then
|
|
warningDeepSlumber:Show(args.destName)
|
|
end
|
|
end
|
|
|