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.5 KiB

local mod = DBM:NewMod(449, "DBM-Party-Vanilla", 10, 236)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20221029204017")
mod:SetCreatureID(10813)--10812 Grand Crusader Dathrohan (stage 1 classic, on live the boss starts out as Balnazzar)
mod:SetEncounterID(478)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 17405 66290 13704",
"SPELL_AURA_APPLIED 17405 66290"
)
local warningDomination = mod:NewTargetNoFilterAnnounce(17405, 4)
local warningSleep = mod:NewTargetNoFilterAnnounce(66290, 3)
local warningPsychicScream = mod:NewSpellAnnounce(13704, 3)
local timerDominationCD = mod:NewAITimer(180, 17405, nil, nil, nil, 3)
local timerSleepCD = mod:NewAITimer(180, 66290, nil, nil, nil, 3, nil, DBM_COMMON_L.MAGIC_ICON)
local timerPsychicScreamCD = mod:NewAITimer(180, 13704, nil, nil, nil, 2, nil, DBM_COMMON_L.MAGIC_ICON)
function mod:OnCombatStart(delay)
timerDominationCD:Start(1-delay)
timerSleepCD:Start(1-delay)
timerPsychicScreamCD:Start(1-delay)
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 17405 then
timerDominationCD:Start()
elseif args.spellId == 66290 then
timerSleepCD:Start()
elseif args.spellId == 13704 then
warningPsychicScream:Show()
timerPsychicScreamCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 17405 then
warningDomination:Show(args.destName)
elseif args.spellId == 66290 then
warningSleep:Show(args.destName)
end
end