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", DBM:IsRetail() and 12 or 17, 237)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231012014002")
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:IsSpell(12889) and not args:IsSrcTypePlayer() then
timerCurseofTonguesCD:Start()
elseif args:IsSpell(12888) then
timerCauseInsanityCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpell(12889) and not args:IsSrcTypePlayer() then
warningCurseofTongues:Show(args.destName)
elseif args:IsSpell(12888) then
warningCauseInsanity:Show(args.destName)
end
end