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
782 B

local mod = DBM:NewMod("BaronSilverlaine", "DBM-Party-Vanilla", 14)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231012014002")
mod:SetCreatureID(3887)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 7068",
"SPELL_AURA_APPLIED 7068"
)
local warningVeilofShadow = mod:NewTargetNoFilterAnnounce(7068, 2)
local timerVeilofShadowCD = mod:NewAITimer(180, 7068, nil, nil, nil, 3, nil, DBM_COMMON_L.CURSE_ICON)
function mod:OnCombatStart(delay)
timerVeilofShadowCD:Start(1-delay)
end
function mod:SPELL_CAST_START(args)
if args:IsSpell(7068) then
timerVeilofShadowCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpell(7068) then
warningVeilofShadow:Show(args.destName)
end
end