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
1.0 KiB
34 lines
1.0 KiB
local mod = DBM:NewMod("Hazzas", "DBM-Party-Vanilla", DBM:IsPostCata() and 12 or 17)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20240316010232")
|
|
mod:SetCreatureID(5722)
|
|
mod:SetEncounterID(491)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_SUCCESS 12882 12884"
|
|
)
|
|
|
|
--TODO, Change timers to sourcename timers when not AI
|
|
local warnWingFlap = mod:NewSpellAnnounce(12882, 2)
|
|
local warnAcidBreath = mod:NewSpellAnnounce(12884, 2)
|
|
|
|
local timerWingFlapCD = mod:NewAITimer(180, 12882, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
|
|
local timerAcidBreathCD = mod:NewAITimer(180, 12884, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerWingFlapCD:Start(1-delay)
|
|
timerAcidBreathCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args:IsSpell(12882) then
|
|
warnWingFlap:Show()
|
|
timerWingFlapCD:Start()
|
|
elseif args:IsSpell(12884) then
|
|
warnAcidBreath:Show()
|
|
timerAcidBreathCD:Start()
|
|
end
|
|
end
|
|
|