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.

42 lines
1.2 KiB

local mod = DBM:NewMod("AggemThorncurse", "DBM-Party-Vanilla", 11)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231012014002")
mod:SetCreatureID(4424)
--mod:SetEncounterID(438)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 14900",
"SPELL_CAST_SUCCESS 8286"
)
local warningSummonBoar = mod:NewSpellAnnounce(8286, 2)
local specWarnHeal = mod:NewSpecialWarningInterrupt(14900, "HasInterrupt", nil, nil, 1, 2)
local timerSummonBoarCD = mod:NewAITimer(180, 8286, nil, nil, nil, 1, nil, DBM_COMMON_L.DAMAGE_ICON)
local timerHealCD = mod:NewAITimer(180, 14900, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
function mod:OnCombatStart(delay)
--timerSummonBoarCD:Start(7-delay)
--timerHealCD:Start(9.5-delay)
end
function mod:SPELL_CAST_START(args)
if args:IsSpell(14900) and args:IsSrcTypeHostile() then
timerHealCD:Start()
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
specWarnHeal:Show(args.sourceName)
specWarnHeal:Play("kickcast")
end
end
end
function mod:SPELL_CAST_SUCCESS(args)
if args:IsSpell(8286) then
warningSummonBoar:Show()
timerSummonBoarCD:Start()
end
end