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.

48 lines
1.4 KiB

4 years ago
-------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Omor the Unscarred", 543, 528)
if not mod then return end
mod:RegisterEnableMob(17308)
-- mod.engageId = 1891 -- no boss frames
-- mod.respawnTime = 0 -- resets, doesn't respawn
-------------------------------------------------------------------------------
-- Initialization
--
function mod:GetOptions()
return {
{30695, "SAY", "ICON", "PROXIMITY"}, -- Treacherous Aura
}
end
function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "TreacherousAura", 30695, 37566) -- Treacherous Aura, Bane of Treachery (heroic version)
self:Log("SPELL_AURA_REMOVED", "TreacherousAuraRemoved", 30695, 37566)
self:Death("Win", 17308)
end
-------------------------------------------------------------------------------
-- Event Handlers
--
function mod:TreacherousAura(args)
if self:Me(args.destGUID) then
self:Say(30695)
self:OpenProximity(30695, 15)
else
self:OpenProximity(30695, 15, args.destName)
end
self:TargetMessageOld(30695, args.destName, "orange", nil, args.spellName)
self:TargetBar(30695, 15, args.destName, args.spellName)
self:PrimaryIcon(30695, args.destName)
end
function mod:TreacherousAuraRemoved(args)
self:PrimaryIcon(30695)
self:CloseProximity(30695)
self:StopBar(args.spellName, args.destName)
end