Code:
function Infernal(PUnit)
Unit:SendChatMessage(5, 0, "Come my infernal!")
end
function Boss_Nova(PUnit)
Unit:CastSpell(33846)
Unit:SendChatMessage(12, 0, "Face my wrath!")
end
function Polymorph(PUnit)
Unit:SendChatMessage(12, 0, "You dare hurt me?! You will die!")
end
function Enter_Combat(PUnit)
Unit:SendChatMessage(12, 0, "You will not pass me!")
end
function Boss_OnCombat(PUnit, event)
Unit:RegisterEvent("Boss_Phase1",1000, 0)
Unit:RegisterEvent("Enter_Combat",1000, 0)
end
RegisterUnitEvent(ENTRY 2000007, 1, "Boss_OnCombat")
function Boss_Phase1(PUnit, event)
if Unit:GetHealthPct() < 70 then
Unit:CastSpell(33846)
Unit:RegisterEvent("Boss_Nova",10000, 0)
Unit:RegisterEvent("Boss_Phase2",1000, 0)
end
end
function Boss_Phase2(PUnit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:CastSpell(23426)
Unit:RegisterEvent("Infernal",10000, 0)
Unit:RegisterEvent("Boss_Phase3",10000, 0)
end
end
function Boss_Phase3(PUnit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:CastSpell(23603)
Unit:RegisterEvent("Polymorph",10000, 0)
end
end
That should do it.