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.

39 lines
914 B

local mod = DBM:NewMod(555, "DBM-Party-BC", 2, 256)
local L = mod:GetLocalizedStrings()
if mod:IsRetail() then
mod.statTypes = "normal,heroic,timewalker"
end
mod:SetRevision("20231014053250")
mod:SetCreatureID(17381)
mod:SetEncounterID(1922)
if not mod:IsRetail() then
mod:SetModelID(18369)
mod:SetModelOffset(-4, 0, -0.4)
end
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 30923",
"SPELL_AURA_REMOVED 30923"
)
local warnMindControl = mod:NewTargetNoFilterAnnounce(30923, 4)
local timerMindControl = mod:NewTargetTimer(10, 30923, nil, nil, nil, 3)
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 30923 then
warnMindControl:Show(args.destName)
timerMindControl:Start(args.destName)
end
end
function mod:SPELL_AURA_REMOVED(args)
if args.spellId == 30923 then
timerMindControl:Stop(args.destName)
end
end