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("MordreshFireEye", "DBM-Party-Vanilla", 10)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231012014002")
mod:SetCreatureID(7357)
--mod:SetEncounterID(585)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 12466",
"SPELL_CAST_SUCCESS 12470"
)
local warningFireNova = mod:NewSpellAnnounce(12470, 2)
local specWarnFireball = mod:NewSpecialWarningInterrupt(12466, "HasInterrupt", nil, nil, 1, 2)
local timerFireballCD = mod:NewAITimer(180, 12466, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
local timerFireNovaCD = mod:NewAITimer(180, 12470, nil, nil, nil, 5, nil, DBM_COMMON_L.HEALER_ICON)
function mod:OnCombatStart(delay)
timerFireballCD:Start(1-delay)
timerFireNovaCD:Start(1-delay)
end
function mod:SPELL_CAST_START(args)
if args:IsSpell(12466) and args:IsSrcTypeHostile() then
timerFireballCD:Start()
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
specWarnFireball:Show(args.sourceName)
specWarnFireball:Play("kickcast")
end
end
end
function mod:SPELL_CAST_SUCCESS(args)
if args:IsSpell(12470) then
warningFireNova:Show()
timerFireNovaCD:Start()
end
end