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.

34 lines
985 B

local mod = DBM:NewMod(423, "DBM-Party-Vanilla", 6, 232)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20221029204017")
mod:SetCreatureID(13282)
mod:SetEncounterID(422)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 10966 21707"
)
--TODO, spawns affect uppercut timer?
local warningSpawns = mod:NewSpellAnnounce(21707, 2)
local warningUppercut = mod:NewSpellAnnounce(10966, 2)
local timerSpawnsCD = mod:NewAITimer(180, 21707, nil, nil, nil, 1, nil, DBM_COMMON_L.DAMAGE_ICON)
local timerUppercutCD = mod:NewAITimer(180, 10966, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
function mod:OnCombatStart(delay)
timerSpawnsCD:Start(1-delay)--6
timerUppercutCD:Start(1-delay)--18
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 10966 then
warningUppercut:Show()
timerUppercutCD:Start()
elseif args.spellId == 21707 then
warningSpawns:Show()
timerSpawnsCD:Start()
end
end