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.

30 lines
991 B

local mod = DBM:NewMod(456, "DBM-Party-Vanilla", 10, 236)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20221029204017")
mod:SetCreatureID(45412)--10440 Baron Rivendare, 45412 Lord Aurius Rivendare, 11197/mindless-skeleton
mod:SetEncounterID(484)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_SUMMON 17480"
)
--TODO, verify Raise Dead for adds or replace it with 17473 and SPELL_CAST event or some emote/yell
local warningRaiseDead = mod:NewSpellAnnounce(17473, 2)
local timerRaiseDeadCD = mod:NewAITimer(180, 17473, nil, nil, nil, 1, nil, DBM_COMMON_L.DAMAGE_ICON)
local timerDeathPactCD = mod:NewNextTimer(12, 17471, nil, nil, nil, 5, nil, DBM_COMMON_L.DAMAGE_ICON)
function mod:OnCombatStart(delay)
timerRaiseDeadCD:Start(1-delay)
end
function mod:SPELL_SUMMON(args)
if args.spellId == 17480 and self:AntiSpam(5, 1) then
warningRaiseDead:Show()
timerDeathPactCD:Start()
timerRaiseDeadCD:Start()
end
end