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.
45 lines
1.2 KiB
45 lines
1.2 KiB
|
|
--------------------------------------------------------------------------------
|
|
-- Module declaration
|
|
--
|
|
|
|
local mod, CL = BigWigs:NewBoss("Slad'ran", 604, 592)
|
|
if not mod then return end
|
|
mod:RegisterEnableMob(29304)
|
|
mod.engageId = 1978
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Initialization
|
|
--
|
|
|
|
function mod:GetOptions()
|
|
return {
|
|
59842, -- Poison Nova
|
|
}
|
|
end
|
|
|
|
function mod:OnBossEnable()
|
|
self:Log("SPELL_CAST_START", "PoisonNova", 55081, 59842) -- normal, heroic
|
|
self:Log("SPELL_AURA_APPLIED", "PoisonNovaApplied", 55081, 59842)
|
|
self:Log("SPELL_AURA_REMOVED", "PoisonNovaRemoved", 55081, 59842)
|
|
end
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Event Handlers
|
|
--
|
|
|
|
function mod:PoisonNova(args)
|
|
self:MessageOld(59842, "yellow", "info", CL.casting:format(args.spellName))
|
|
self:Bar(59842, 3.5)
|
|
end
|
|
|
|
function mod:PoisonNovaApplied(args)
|
|
if self:Me(args.destGUID) then
|
|
self:TargetMessageOld(59842, args.destName, "blue", "alarm")
|
|
self:TargetBar(59842, args.spellId == 59842 and 10 or 16, args.destName)
|
|
end
|
|
end
|
|
|
|
function mod:PoisonNovaRemoved(args)
|
|
self:StopBar(args.spellName, args.destName)
|
|
end
|
|
|