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.

47 lines
1.2 KiB

local mod = DBM:NewMod(538, "DBM-Party-BC", 11, 251)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231014053250")
mod:SetCreatureID(17848)
mod:SetEncounterID(1905)
if not mod:IsRetail() then
mod:SetModelID(17386)
end
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 31909 21910",
"SPELL_AURA_APPLIED 33792 31911",
"SPELL_AURA_REMOVED 33792"
)
local warnShot = mod:NewTargetNoFilterAnnounce(33792)
local warningMortalStrike = mod:NewTargetNoFilterAnnounce(31911, 1, nil, "Tank|Healer")
local specWarnWhirlwind = mod:NewSpecialWarningRun(31909, nil, nil, nil, 4, 2)
local timerShot = mod:NewTargetTimer(6, 33792, nil, nil, nil, 3)
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 31909 or args.spellId == 21910 then
specWarnWhirlwind:Show()
specWarnWhirlwind:Play("justrun")
end
end
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 33792 then
warnShot:Show(args.destName)
timerShot:Start(args.destName)
elseif args.spellId == 31911 then
warningMortalStrike:Show(args.destName)
end
end
function mod:SPELL_AURA_REMOVED(args)
if args.spellId == 33792 then
timerShot:Stop(args.destName)
end
end