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
904 B
34 lines
904 B
|
3 years ago
|
local mod = DBM:NewMod(455, "DBM-Party-Vanilla", 10, 236)
|
||
|
|
local L = mod:GetLocalizedStrings()
|
||
|
|
|
||
|
|
mod:SetRevision("20221029204017")
|
||
|
|
mod:SetCreatureID(10439)
|
||
|
|
mod:SetEncounterID(483)
|
||
|
|
|
||
|
|
mod:RegisterCombat("combat")
|
||
|
|
|
||
|
|
mod:RegisterEventsInCombat(
|
||
|
|
"SPELL_CAST_SUCCESS 17307 5568"
|
||
|
|
)
|
||
|
|
|
||
|
|
local warningKnockout = mod:NewSpellAnnounce(17307, 2)
|
||
|
|
local warningTrample = mod:NewSpellAnnounce(5568, 2)
|
||
|
|
|
||
|
|
local timerKnockoutCD = mod:NewAITimer(180, 17307, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
|
||
|
|
local timerTrampleCD = mod:NewAITimer(180, 5568, nil, nil, nil, 2)
|
||
|
|
|
||
|
|
function mod:OnCombatStart(delay)
|
||
|
|
timerKnockoutCD:Start(1-delay)
|
||
|
|
timerTrampleCD:Start(1-delay)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
||
|
|
if args.spellId == 17307 then
|
||
|
|
warningKnockout:Show()
|
||
|
|
timerKnockoutCD:Start()
|
||
|
|
elseif args.spellId == 5568 then
|
||
|
|
warningTrample:Show()
|
||
|
|
timerTrampleCD:Start()
|
||
|
|
end
|
||
|
|
end
|