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

local mod, CL = BigWigs:NewBoss("Prince Taldaram", 522, 581)
if not mod then return end
mod:RegisterEnableMob(29308)

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

function mod:GetOptions()
	return {
		59513, -- Embrace of the Vampyr
		55931, -- Conjure Flame Sphere
	}
end

function mod:OnBossEnable()
	self:Log("SPELL_AURA_APPLIED", "EmbraceOfTheVampyr", 55959, 59513)
	self:Log("SPELL_AURA_REMOVED", "EmbraceOfTheVampyrRemoved", 55959, 59513)
	self:Log("SPELL_CAST_START", "ConjureFlameSphere", 55931)

	self:Death("Win", 29308)
end

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

function mod:EmbraceOfTheVampyr(args)
	self:Message(59513, "Important")
	self:Bar(59513, 20)
end

function mod:EmbraceOfTheVampyrRemoved(args)
	self:Message(59513, "Positive", nil, CL.over:format(args.spellName))
	self:StopBar(args.spellName)
end

function mod:ConjureFlameSphere(args)
	self:Message(args.spellId, "Important")
	self:Bar(args.spellId, 10)
end

