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
42 lines
1.2 KiB
local mod = DBM:NewMod(749, "DBM-Party-Vanilla", 10, 236)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20221029204017")
|
|
mod:SetCreatureID(11032)
|
|
mod:SetEncounterID(476)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 15245",
|
|
"SPELL_CAST_SUCCESS 12734"
|
|
)
|
|
|
|
local warningGroundSmash = mod:NewSpellAnnounce(12734, 2)
|
|
|
|
local specWarnShadowBoltVolley = mod:NewSpecialWarningInterrupt(15245, "HasInterrupt", nil, nil, 1, 2)
|
|
|
|
local timerShadowBoltVolleyCD = mod:NewAITimer(180, 15245, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
|
|
local timerGroundSmashCD = mod:NewAITimer(180, 12734, nil, nil, nil, 2)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerShadowBoltVolleyCD:Start(1-delay)
|
|
timerGroundSmashCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args.spellId == 15245 then
|
|
timerShadowBoltVolleyCD:Start()
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnShadowBoltVolley:Show(args.sourceName)
|
|
specWarnShadowBoltVolley:Play("kickcast")
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args.spellId == 12734 then
|
|
warningGroundSmash:Show()
|
|
timerGroundSmashCD:Start()
|
|
end
|
|
end
|
|
|