Wise
02-03-10, 12:24 AM
function KilShushia_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "You killed my brother! Now its time for pay back!")
Unit:RegisterEvent("KilShushia_ShadowBall", 1000, 1)
Unit:RegisterEvent("KilShushia_Impale", 15000, 5)
Unit:RegisterEvent("KilShushia_DeathAndDecay", 30000, 1000)
Unit:RegisterEvent("KilShushia_Stun", 23000, 1)
Unit:RegisterEvent("KilShushia_Buffs", 1000, 1)
Unit:RegisterEvent("KilShushia_Phase2", 1000, 1)
end
function KilShushia_Phase2 (Unit, Event)
if Unit:GetHealthPct() < 10 then
Unit:RegisterEvent("KilShushia_Heal1", 1000, 1)
Unit:RegisterEvent("KilShushia_Heal2", 6000, 1)
Unit:RegisterEvent("KilShushia_Heal3", 9000, 1)
Unit:RegisterEvent("KilShushia_Heal4", 12000, 1)
end
end
function KilShushia_Heal1 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Heal2 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Heal3 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Heal4 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Buffs (Unit, Event)
Unit:FullCastSpell(49284)
Unit:FullCastSpell(48066)
Unit:FullCastSpell(24021)
end
function KilShushia_Stun (Unit, Event)
Unit:FullCastSpellOnTarget(36877, Unit:GetRandomPlayer(7))
end
function KilShushia_DeathAndDecay (Unit, Event)
Unit:FullCastSpellOnTarget(71001, Unit:GetRandomPlayer(7))
end
function KilShushia_ShadowBall (Unit, Event)
Unit:FullCastSpellOnTarget(71254, Unit:GetMainTank())
end
function KilShushia_Impale (Unit, Event)
Unit:FullCastSpellOnTarget(59446, Unit:GetMainTank())
end
function KilShushia_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function KilShushia_OnKilledTarget(Unit, Event)
end
function KilShushia_OnDied(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(600005, 1, "KilShushia_OnCombat")
RegisterUnitEvent(600005, 2, "KilShushia_OnLeaveCombat")
RegisterUnitEvent(600005, 3, "KilShushia_OnKilledTarget")
RegisterUnitEvent(600005, 4, "KilShushia_OnDied")
Credits to Maylinn
Unit:SendChatMessage(14, 0, "You killed my brother! Now its time for pay back!")
Unit:RegisterEvent("KilShushia_ShadowBall", 1000, 1)
Unit:RegisterEvent("KilShushia_Impale", 15000, 5)
Unit:RegisterEvent("KilShushia_DeathAndDecay", 30000, 1000)
Unit:RegisterEvent("KilShushia_Stun", 23000, 1)
Unit:RegisterEvent("KilShushia_Buffs", 1000, 1)
Unit:RegisterEvent("KilShushia_Phase2", 1000, 1)
end
function KilShushia_Phase2 (Unit, Event)
if Unit:GetHealthPct() < 10 then
Unit:RegisterEvent("KilShushia_Heal1", 1000, 1)
Unit:RegisterEvent("KilShushia_Heal2", 6000, 1)
Unit:RegisterEvent("KilShushia_Heal3", 9000, 1)
Unit:RegisterEvent("KilShushia_Heal4", 12000, 1)
end
end
function KilShushia_Heal1 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Heal2 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Heal3 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Heal4 (Unit, Event)
Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
end
function KilShushia_Buffs (Unit, Event)
Unit:FullCastSpell(49284)
Unit:FullCastSpell(48066)
Unit:FullCastSpell(24021)
end
function KilShushia_Stun (Unit, Event)
Unit:FullCastSpellOnTarget(36877, Unit:GetRandomPlayer(7))
end
function KilShushia_DeathAndDecay (Unit, Event)
Unit:FullCastSpellOnTarget(71001, Unit:GetRandomPlayer(7))
end
function KilShushia_ShadowBall (Unit, Event)
Unit:FullCastSpellOnTarget(71254, Unit:GetMainTank())
end
function KilShushia_Impale (Unit, Event)
Unit:FullCastSpellOnTarget(59446, Unit:GetMainTank())
end
function KilShushia_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function KilShushia_OnKilledTarget(Unit, Event)
end
function KilShushia_OnDied(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(600005, 1, "KilShushia_OnCombat")
RegisterUnitEvent(600005, 2, "KilShushia_OnLeaveCombat")
RegisterUnitEvent(600005, 3, "KilShushia_OnKilledTarget")
RegisterUnitEvent(600005, 4, "KilShushia_OnDied")
Credits to Maylinn