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.
60 lines
2.0 KiB
60 lines
2.0 KiB
local mod = DBM:NewMod(475, "DBM-Party-Vanilla", 14, 240)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20230117063410")
|
|
mod:SetCreatureID(3669)
|
|
mod:SetEncounterID(586)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 8040 23381",
|
|
"SPELL_CAST_SUCCESS 7965 17330",
|
|
"SPELL_AURA_APPLIED 8040 17330"
|
|
)
|
|
|
|
local warningDruidSlumber = mod:NewTargetNoFilterAnnounce(8040, 2)
|
|
local warningHealingTouch = mod:NewCastAnnounce(23381, 2)
|
|
local warningPoison = mod:NewTargetNoFilterAnnounce(17330, 2, nil, "RemovePoison")
|
|
|
|
local specWarnDruidsSlumber = mod:NewSpecialWarningInterrupt(8040, "HasInterrupt", nil, nil, 1, 2)
|
|
|
|
local timerDruidsSlumberCD = mod:NewAITimer(180, 8040, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON..DBM_COMMON_L.MAGIC_ICON)
|
|
local timerHealingTouchCD = mod:NewAITimer(180, 23381, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
|
|
local timerPoisonCD = mod:NewAITimer(180, 23381, nil, "RemovePoison", nil, 5, nil, DBM_COMMON_L.POISON_ICON)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerDruidsSlumberCD:Start(1-delay)
|
|
timerHealingTouchCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args.spellId == 8040 then
|
|
timerDruidsSlumberCD:Start()
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnDruidsSlumber:Show(args.sourceName)
|
|
specWarnDruidsSlumber:Play("kickcast")
|
|
end
|
|
elseif args.spellId == 23381 then
|
|
warningHealingTouch:Show()
|
|
timerHealingTouchCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args.spellId == 7965 then
|
|
timerDruidsSlumberCD:Stop()
|
|
timerHealingTouchCD:Stop()
|
|
timerPoisonCD:Start(1)
|
|
elseif args.spellId == 17330 then
|
|
timerPoisonCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args.spellId == 8040 then
|
|
warningDruidSlumber:Show(args.destName)
|
|
elseif args.spellId == 17330 and self:CheckDispelFilter("poison") then
|
|
warningPoison:Show(args.destName)
|
|
end
|
|
end
|
|
|