
--------------------------------------------------------------------------------
-- Module declaration
--

local mod, CL = BigWigs:NewBoss("Slad'ran", 530, 592)
if not mod then return end
mod:RegisterEnableMob(29304)

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
	return {
		59842, -- Poison Nova
	}
end

function mod:OnBossEnable()
	self:Log("SPELL_CAST_START", "PoisonNova", 55081, 59842)
	self:Log("SPELL_AURA_APPLIED", "PoisonNovaApplied", 55081, 59842)
	self:Log("SPELL_AURA_REMOVED", "PoisonNovaRemoved", 55081, 59842)

	self:Death("Win", 29304)
end

--------------------------------------------------------------------------------
-- Event Handlers
--

function mod:PoisonNova(args)
	self:Message(59842, "Attention", nil, CL.casting:format(args.spellName))
	self:Bar(59842, 3.5)
end

function mod:PoisonNovaApplied(args)
	self:TargetMessage(59842, argss.destName, "Urgent")
	self:TargetBar(59842, args.spellId == 59842 and 10 or 16, args.destName)
end

function mod:PoisonNovaRemoved(args)
	self:StopBar(args.spellName, args.destName)
end

