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.

40 lines
1.2 KiB

local mod = DBM:NewMod(457, "DBM-Party-Vanilla", 12, 237)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20221029204017")
mod:SetCreatureID(8443)
mod:SetEncounterID(492)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 12889 12888",
"SPELL_AURA_APPLIED 12889 12888"
)
local warningCurseofTongues = mod:NewTargetNoFilterAnnounce(12889, 2, nil, "RemoveCurse")
local warningCauseInsanity = mod:NewTargetNoFilterAnnounce(12888, 4)
local timerCurseofTonguesCD = mod:NewAITimer(180, 12889, nil, nil, nil, 3, nil, DBM_COMMON_L.CURSE_ICON)
local timerCauseInsanityCD = mod:NewAITimer(180, 12888, nil, nil, nil, 3)
function mod:OnCombatStart(delay)
timerCurseofTonguesCD:Start(1-delay)
timerCauseInsanityCD:Start(1-delay)
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 12889 then
timerCurseofTonguesCD:Start()
elseif args.spellId == 12888 then
timerCauseInsanityCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 12889 then
warningCurseofTongues:Show(args.destName)
elseif args.spellId == 12888 then
warningCauseInsanity:Show(args.destName)
end
end