Files
Andrew6810 39c0ed874e init
2022-10-21 06:50:13 -07:00

29 lines
703 B
Lua

local mod = DBM:NewMod("Aeonus", "DBM-Party-BC", 12)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
mod:SetCreatureID(17881)
mod:RegisterCombat("combat")
mod:RegisterEvents(
"CHAT_MSG_MONSTER_EMOTE",
"SPELL_CAST_SUCCESS"
)
local warnFrenzy = mod:NewAnnounce("warnFrenzy", 3)
local warnTimeStop = mod:NewSpellAnnounce(31422)
local timerTimeStop = mod:NewBuffActiveTimer(4, 31422)
function mod:CHAT_MSG_MONSTER_EMOTE(msg)
if msg == L.AeonusFrenzy and self:IsInCombat() then -- Frenzy
warnFrenzy:Show()
end
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 31422 then --Time Stop
warnTimeStop:Show()
timerTimeStop:Start()
end
end