ArchLichUdalan.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/ShatteredStillness/ArchLichUdalan.lua
  3. Script Author : Neveruary
  4. Script Date : 2021.10.04 01:10:53
  5. Script Purpose : Governs behavior of Arch Lich Udalan in Shattered Stillness: Epic.
  6. Script Notes : Withering Soulscream, Suffocating Cloud, and chaotic elemental summoning spell need implementation.
  7. Boss Mechanics : Every minute, Udalan summons a chaotic elemental. This channeling can be interrupted by stunning him. The elemental has a few spells
  8. : the most dangerous of which is stunning shards.
  9. --]]
  10. spells = {240107, 240003, 240049} -- Withering Soulscream, Suffocating Cloud
  11. function spawn(NPC)
  12. end
  13. function aggro(NPC, Spawn)
  14. AddTimer(NPC, math.random(1500,2500), "spellLoop")
  15. AddTimer(NPC, 1000, "eleLoop")
  16. end
  17. function eleLoop(NPC, Spawn)
  18. Shout(NPC, "eleLoop firing.")
  19. AddTimer(NPC, 57000, "eleSpawns")
  20. end
  21. function eleSpawns(NPC, Spawn) -- spawns elementals on a timer. timer starts on aggro.
  22. AddTimer(NPC, 1000, "eleLoop")
  23. -- CastSpell(NPC, summon chaotic elemental, 3, NPC)
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. end
  28. function respawn(NPC)
  29. spawn(NPC)
  30. end