Code:
function ShadeofArchimonde_Spell1(Unit, event)
Unit:FullCastSpellOnTarget(21079, Unit:GetMainTank())
Unit:CastSpellOnTarget(21079, Unit:GetMainTank())
Unit:CastSpell(27988)
Unit:FullCastSpellOnTarget(797, Unit:GetMainTank())
end
function ShadeofArchimonde_Spell2(Unit, event)
Unit:FullCastSpellOnTarget(17771, Unit:GetMainTank())
Unit:CastSpellOnTarget(956,Unit:GetMainTank())
Unit:CastSpell(27988)
Unit:CastSpell(11026)
end
function ShadeofArchimonde_Spell3(Unit, event)
Unit:FullCastSpellOnTarget(797, Unit:GetMainTank())
Unit:CastSpellOnTarget(17771, Unit:GetMainTank())
Unit:FullCastSpellOnTarget(1112, Unit:GetMainTank())
Unit:FullCastSpellOnTarget(14887, Unit:GetMainTank())
Unit:CastSpellOnTarget(14122, Unit:GetRandomPlayer(0))
Unit:CastSpellOnTarget(17146, Unit:GetRandomPlayer(0))
Unit:CastSpellOnTarget(17146, Unit:GetRandomPlayer(0))
end
function ShadeofArchimonde_Spell4(Unit, event)
Unit:FullCastSpellOnTarget(19798, Unit:GetMainTank())
Unit:FullCastSpellOnTarget(21333, Unit:GetMainTank())
Unit:FullCastSpellOnTarget(21558, Unit:GetMainTank())
Unit:CastSpell(8176)
end
function ShadeofArchimonde_Spell5(Unit, event)
Unit:CastSpell(8176)
Unit:CastSpell(14642)
Unit:CastSpell(8176)
Unit:CastSpell(14642)
Unit:CastSpell(642)
Unit:SendChatMessage(11, 0, "Hounds, come to me, to your true lord!")
end
function ShadeofArchimonde_Phase1(Unit, event)
if Unit:GetHealthPct() < 99 then
Unit:RemoveEvents()
Unit:SpawnGameObject(36727, 5078.961914, 1824.318359, 1330.874756, 1.384665, 600000)
Unit:SpawnGameObject(36727, 5094.566895, 1823.196411, 1331.093628, 1.993339, 600000)
Unit:SpawnGameObject(36727, 5104.882324, 1817.688965, 1331.828857, 2.448870, 600000)
Unit:SpawnGameObject(36727, 5108.708984, 1801.545898, 1332.405762, 2.986868, 600000)
Unit:SpawnGameObject(36727, 5111.125977, 1829.495728, 1332.795410, 2.287860, 600000)
Unit:RegisterEvent("ShadeofArchimonde_Spell1",8000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Spell2",25000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Spell3",17000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Phase2",1000, 0)
end
end
function ShadeofArchimonde_Phase2(Unit, event)
if Unit:GetHealthPct() < 60 then
Unit:SpawnCreature(9004, 5078.961914, 1824.318359, 1330.874756, 1.384665, 14, 600000)
Unit:SpawnCreature(9004, 5078.961914, 1824.318359, 1330.874756, 1.384665, 14, 600000)
Unit:SpawnCreature(9004, 5078.961914, 1824.318359, 1330.874756, 1.384665, 14, 600000)
Unit:SpawnCreature(9004, 5078.961914, 1824.318359, 1330.874756, 1.384665, 14, 600000)
Unit:SpawnCreature(9004, 5094.566895, 1823.196411, 1331.093628, 1.993339, 14, 600000)
Unit:SpawnCreature(9004, 5094.566895, 1823.196411, 1331.093628, 1.993339, 14, 600000)
Unit:SpawnCreature(9004, 5094.566895, 1823.196411, 1331.093628, 1.993339, 14, 600000)
Unit:SpawnCreature(9004, 5094.566895, 1823.196411, 1331.093628, 1.993339, 14, 600000)
Unit:SpawnCreature(9004, 5104.882324, 1817.688965, 1331.828857, 2.448870, 14, 600000)
Unit:SpawnCreature(9004, 5104.882324, 1817.688965, 1331.828857, 2.448870, 14, 600000)
Unit:SpawnCreature(9004, 5104.882324, 1817.688965, 1331.828857, 2.448870, 14, 600000)
Unit:SpawnCreature(9004, 5104.882324, 1817.688965, 1331.828857, 2.448870, 14, 600000)
Unit:SpawnCreature(9004, 5108.708984, 1801.545898, 1332.405762, 2.986868, 14, 600000)
Unit:SpawnCreature(9004, 5108.708984, 1801.545898, 1332.405762, 2.986868, 14, 600000)
Unit:SpawnCreature(9004, 5108.708984, 1801.545898, 1332.405762, 2.986868, 14, 600000)
Unit:SpawnCreature(9004, 5108.708984, 1801.545898, 1332.405762, 2.986868, 14, 600000)
Unit:SpawnCreature(8011, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:SpawnCreature(8010, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:SpawnCreature(8010, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:SpawnCreature(8010, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:SpawnCreature(8010, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:SpawnCreature(8010, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:SpawnCreature(8010, 5111.125977, 1829.495728, 1332.795410, 2.287860, 1031, 600000)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Did you seriously think I were so stupid I'd face you alone ? At'luk Daqre, come to me!")
Unit:SetScale(2)
Unit:RegisterEvent("ShadeofArchimonde_Spell1",8000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Spell2",25000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Spell3",17000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Spell4",19300, 0)
Unit:RegisterEvent("ShadeofArchimonde_Spell5",68000, 0)
Unit:RegisterEvent("ShadeofArchimonde_Phase3",1000, 0)
end
end
function ShadeofArchimonde_Phase3(Unit, event)
if Unit:GetHealthPct() < 40 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Demon hunter, stay out of this! You're not welcome")
Unit:RegisterEvent("ShadeofArchimonde_Phase4",1000, 0)
end
end
function ShadeofArchimonde_Phase4(Unit, event)
if Unit:GetHealthPct() < 30 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Very well then, Ko'matra, Hovoira come to aid your master!Rise up Dhunel your master is calling you!")
Unit:SpawnCreature(9001, 5108.708984, 1801.545898, 1332.405762, 2.986868, 14, 600000)
Unit:SpawnCreature(9009, 5108.708984, 1801.545898, 1332.405762, 2.986868, 14, 600000)
end
end
function ShadeofArchimonde_OnCombat(Unit, event)
Unit:SendChatMessage(11, 0, "I've been expecting you ,too bad you're going to die!")
Unit:RegisterEvent("ShadeofArchimonde_Phase1",1000, 0)
end
function ShadeofArchimonde_OnLeaveCombat(Unit, event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Feel My Pain!")
Unit:SetScale(1)
end
function ShadeofArchimonde_OnKilledTarget(Unit, event)
Unit:SendChatMessage(11, 0, "Whah-hah-haa!")
Unit:CastSpell(13048)
end
function ShadeofArchimonde_Death(Unit, event)
Unit:RemoveEvents()
Unit:SetScale(1)
end
RegisterUnitEvent(9007, 1, "ShadeofArchimonde_OnCombat")
RegisterUnitEvent(9007, 2, "ShadeofArchimonde_OnLeaveCombat")
RegisterUnitEvent(9007, 3, "ShadeofArchimonde_OnKilledTarget")
RegisterUnitEvent(9007, 4, "ShadeofArchimonde_Death")