Code:
function Snow_phase1(pUnit, Event)
if pUnit:GetHealthPct() < 90 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(28531)
pUnit:RegisterEvent("Snow_phase19",1000, 0)
pUnit:RegisterEvent("Snow_Icebolt",10000, 0)
pUnit:RegisterEvent("Snow_Frostdot",6000, 0)
end
end
function Snow_Icebolt(pUnit, Event)
pUnit:FullCastSpell(44799)
end
function Snow_Frostdot(pUnit, Event)
pUnit:FullCastSpell(28531)
end
function Snow_phase19(pUnit, Event)
if pUnit:GetHealthPct() < 70 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(28524)
pUnit:RegisterEvent("Snow_Frostbolt8k",12000, 0)
pUnit:RegisterEvent("Snow_Icebolt",10000, 0)
pUnit:RegisterEvent("Snow_phase20",1000, 0)
end
end
function Snow_Frostbolt8k(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(28478, plr)
end
end
function Snow_Icebolt(pUnit, Event)
pUnit:FullCastSpell(44799)
end
function Snow_phase20(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:FullCastSpell(28547)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Snow_Frostbolt8k",12000, 0)
pUnit:RegisterEvent("Snow_Frostdot",6000, 0)
pUnit:RegisterEvent("Snow_Adds",15000, 0)
pUnit:RegisterEvent("Snow_phase21",1000, 0)
end
end
function Snow_Frostbolt8k(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(28478, plr)
end
end
function Snow_Frostdot(pUnit, Event)
pUnit:FullCastSpell(28531)
end
function Snow_Adds(pUnit, Event)
pUnit:FullCastSpell(33539)
end
function Snow_phase21(pUnit, Event)
if pUnit:GetHealthPct() < 20 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(28524)
pUnit:RegisterEvent("Snow_Frostbolt8k",12000, 0)
pUnit:RegisterEvent("Snow_Frostdot",6000, 0)
pUnit:RegisterEvent("Snow_Frostboltaoe",6500, 0)
pUnit:RegisterEvent("Snow_Adds2",40000, 0)
pUnit:RegisterEvent("satan_phase22",1000, 0)
end
end
function Snow_Frostbolt8k(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(28478, plr)
end
end
function Snow_Frostdot(pUnit, Event)
pUnit:FullCastSpell(28531)
end
function Snow_Adds2(pUnit, Event)
pUnit:FullCastSpell(33539)
pUnit:FullCastSpell(33539)
pUnit:FullCastSpell(33539)
pUnit:FullCastSpell(33539)
end
function Snow_Frostboltaoe(pUnit, Event)
pUnit:FullCastSpell(33539)
end
function Snow_phase22(pUnit, Event)
if pUnit:GetHealthPct() < 5 then
pUnit:FullCastSpell(28547)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Snow_Frostbolt8k",12000, 0)
pUnit:RegisterEvent("Snow_Frostdot",6000, 0)
pUnit:RegisterEvent("Snow_Frostboltaoe",6500, 0)
pUnit:RegisterEvent("Snow_Adds3",30000, 0)
pUnit:RegisterEvent("satan_start",1000, 0)
end
end
function Snow_Frostbolt8k(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(28478, plr)
end
end
function Snow_Frostdot(pUnit, Event)
pUnit:FullCastSpell(28531)
end
function Snow_Adds3(pUnit, Event)
pUnit:FullCastSpell(33539)
pUnit:FullCastSpell(33539)
pUnit:FullCastSpell(33539)
pUnit:FullCastSpell(33539)
end
function Snow_Icebolt(pUnit, Event)
pUnit:FullCastSpell(44799)
end
function Snow_Frostboltaoe(pUnit, Event)
pUnit:FullCastSpell(33539)
end
function Snow_start(pUnit, Event)
pUnit:RegisterEvent("Snow_phase1",1000, 0)
end
RegisterUnitEvent(79, 1, "Snow_start")