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.
44 lines
1.1 KiB
44 lines
1.1 KiB
|
3 years ago
|
local mod = DBM:NewMod(581, "DBM-Party-WotLK", 1, 271)
|
||
|
|
local L = mod:GetLocalizedStrings()
|
||
|
|
|
||
|
|
mod.statTypes = "normal,heroic,timewalker"
|
||
|
|
|
||
|
|
mod:SetRevision("20220221001452")
|
||
|
|
mod:SetCreatureID(29308)
|
||
|
|
mod:SetEncounterID(1966)
|
||
|
|
|
||
|
|
mod:RegisterCombat("combat")
|
||
|
|
|
||
|
|
mod:RegisterEventsInCombat(
|
||
|
|
"SPELL_CAST_START 55931",
|
||
|
|
"SPELL_AURA_APPLIED 55959 59513",
|
||
|
|
"SPELL_AURA_REMOVED 55959 59513"
|
||
|
|
)
|
||
|
|
|
||
|
|
local warningEmbrace = mod:NewTargetNoFilterAnnounce(55959, 2)
|
||
|
|
local warningFlame = mod:NewSpellAnnounce(55931, 3)
|
||
|
|
|
||
|
|
local timerEmbrace = mod:NewTargetTimer(20, 55959, nil, nil, nil, 3, nil, DBM_COMMON_L.DAMAGE_ICON)
|
||
|
|
local timerFlameCD = mod:NewCDTimer(15, 55931, nil, nil, nil, 3)
|
||
|
|
|
||
|
|
|
||
|
|
function mod:SPELL_CAST_START(args)
|
||
|
|
if args.spellId == 55931 then
|
||
|
|
warningFlame:Show()
|
||
|
|
timerFlameCD:Start()
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:SPELL_AURA_APPLIED(args)
|
||
|
|
if args:IsSpellID(55959, 59513) then
|
||
|
|
warningEmbrace:Show(args.destName)
|
||
|
|
timerEmbrace:Start(args.destName)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:SPELL_AURA_REMOVED(args)
|
||
|
|
if args:IsSpellID(55959, 59513) then
|
||
|
|
timerEmbrace:Cancel()
|
||
|
|
end
|
||
|
|
end
|