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.
33 lines
885 B
33 lines
885 B
local mod = DBM:NewMod(614, "DBM-Party-WotLK", 3, 279)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20220116042005")
|
|
mod:SetCreatureID(26533)
|
|
mod:SetEncounterID(2005)
|
|
|
|
mod:RegisterCombat("combat")
|
|
mod:RegisterKill("yell", L.Outro)
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_AURA_APPLIED 52721 58849",
|
|
"SPELL_AURA_REMOVED 52721 58849"
|
|
)
|
|
|
|
local warningSleep = mod:NewTargetNoFilterAnnounce(52721, 2)
|
|
|
|
local timerSleep = mod:NewTargetTimer(10, 52721, nil, nil, nil, 5, nil, DBM_COMMON_L.MAGIC_ICON)
|
|
local timerSleepCD = mod:NewCDTimer(20, 52721, nil, nil, nil, 3)
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args:IsSpellID(52721, 58849) then
|
|
warningSleep:Show(args.destName)
|
|
timerSleep:Start(args.destName)
|
|
timerSleepCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_REMOVED(args)
|
|
if args:IsSpellID(52721, 58849) then
|
|
timerSleep:Cancel()
|
|
end
|
|
end
|
|
|