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.

45 lines
1.1 KiB

local mod = DBM:NewMod(529, "DBM-Party-BC", 1, 248)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231014053250")
mod:SetCreatureID(17537, 17307)
mod:SetEncounterID(1892)
mod:SetBossHPInfoToHighest()
if not mod:IsRetail() then
mod:SetModelID(18407)
mod:SetModelOffset(-0.2, 0, -0.3)
end
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 30689",
"SPELL_AURA_REMOVED 30689"
)
local warnMark = mod:NewTargetNoFilterAnnounce(30689)
local specwarnMark = mod:NewSpecialWarningYou(30689, nil, nil, nil, 1, 2)
local yellMark = mod:NewYell(30689)
local timerMark = mod:NewTargetTimer(6, 30689, nil, nil, nil, 3)
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 30689 then
timerMark:Start(args.destName)
if args:IsPlayer() then
specwarnMark:Show()
specwarnMark:Play("targetyou")
yellMark:Yell()
else
warnMark:Show(args.destName)
end
end
end
function mod:SPELL_AURA_REMOVED(args)
if args.spellId == 30689 then
timerMark:Stop(args.destName)
end
end