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.

37 lines
1.0 KiB

local mod = DBM:NewMod(607, "DBM-Party-WotLK", 7, 277)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20210614202848")
mod:SetCreatureID(27978)
mod:SetEncounterID(1998)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 59848 50840 59861 51849 50834 59846"
)
local warningCharge = mod:NewTargetAnnounce(50834, 2)
local warningRing = mod:NewSpellAnnounce(50840, 3)
local specWarnCharge = mod:NewSpecialWarningMoveAway(50834, nil, nil, nil, 1, 2)
local yellCharge = mod:NewYell(50834)
local timerChargeCD = mod:NewCDTimer(25, 50834, nil, nil, nil, 3)
local timerRingCD = mod:NewCDTimer(25, 50840, nil, nil, nil, 2)
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpellID(59848, 50840, 59861, 51849) then
warningRing:Show()
timerRingCD:Start()
elseif args:IsSpellID(50834, 59846) then
if args:IsPlayer() then
specWarnCharge:Show()
specWarnCharge:Play("runout")
yellCharge:Yell()
else
warningCharge:Show(args.destName)
end
timerChargeCD:Start()
end
end