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.

34 lines
817 B

local mod = DBM:NewMod("LadySerevess", "DBM-Party-Vanilla", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231130010732")
mod:SetCreatureID(4831)
mod:SetEncounterID(2762)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 246",
"SPELL_AURA_APPLIED 246"
)
local warningSlow = mod:NewTargetNoFilterAnnounce(246, 2)
local timerSlowCD = mod:NewAITimer(180, 246, nil, nil, nil, 3, nil, DBM_COMMON_L.MAGIC_ICON)
function mod:OnCombatStart(delay)
timerSlowCD:Start(1-delay)
end
function mod:SPELL_CAST_SUCCESS(args)
if args:IsSpell(246) and args:IsSrcTypeHostile() then
timerSlowCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpell(246) and args:IsDestTypePlayer() then
warningSlow:Show(args.destName)
end
end