Hey anynoe that could tell me WHY this wont work, Im tapped out of ideas.
Code:
function TestBoss_EnterCombat (pUnit, event)
pUnit:RegisterEvent("TestBoss_Growth", 4000, 0)
pUnit:RegisterEvent("TestBoss_Phase2", 1000, 0)
end
function TestBoss_Growth (pUnit, event)
pUnit:CastSpell(41953, pUnit:GetClosestPlayer())
end
function TestBoss_Phase2 (pUnit, event)
if pUnit:GetHealthPct() < 40 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("TestBoss_Icebolt", 11000, 0)
end
end
function TestBoss_Icebolt (pUnit, event)
pUnit:FullCastSpellOnTarget(31249, pUnit:GetMainTank())
end
function TestBoss_LeaveCombat (pUnit, event)
pUnit:RemoveEvents()
end
function TestBoss_Die (pUnit, event)
pUnit:RemoveEvents()
end
RegisterUnitEvent(180011, 1, "TestBoss_EnterCombat")
RegisterUnitEvent(180011, 2, "TestBoss_LeaveCombat")
RegisterUnitEvent(180011, 4, "TestBoss_Die")
all help is appreacited, ty very much