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.
|
|
|
|
local mod = DBM:NewMod("TwilightLordKelris", "DBM-Party-Vanilla", 1)
|
|
|
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
|
|
|
|
|
|
mod:SetRevision("20231130010732")
|
|
|
|
|
mod:SetCreatureID(4832)
|
|
|
|
|
mod:SetEncounterID(2766)
|
|
|
|
|
|
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
|
|
|
|
|
|
mod:RegisterEventsInCombat(
|
|
|
|
|
"SPELL_CAST_START 8399",
|
|
|
|
|
"SPELL_AURA_APPLIED 8399"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
--TODO, maybe interrupt warning for mind blast
|
|
|
|
|
local warningSleep = mod:NewTargetNoFilterAnnounce(8399, 2)
|
|
|
|
|
|
|
|
|
|
local timerSleepCD = mod:NewAITimer(180, 8399, nil, nil, nil, 3, nil, DBM_COMMON_L.MAGIC_ICON)
|
|
|
|
|
|
|
|
|
|
function mod:OnCombatStart(delay)
|
|
|
|
|
timerSleepCD:Start(1-delay)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
|
|
|
if args:IsSpell(8399) and args:IsSrcTypeHostile() then
|
|
|
|
|
timerSleepCD:Start()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
|
|
|
if args:IsSpell(8399) and args:IsDestTypePlayer() then
|
|
|
|
|
warningSleep:Show(args.destName)
|
|
|
|
|
end
|
|
|
|
|
end
|