9
3

MakutoTheLost.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/ShatteredStillness/MakutoTheLost.lua
  3. Script Author : Neveruary
  4. Script Date : 2021.10.04 11:10:52
  5. Script Purpose : Governs the behavior of Makuto the Lost in Shattered Stillness: Epic
  6. Script Notes : Bolt of Fire needs implementation.
  7. Boss Mechanics : Casts custom spells every so often. Linked with Shakuto the lost.
  8. --]]
  9. spells = {230163, 230106, 2000476} -- Bolt Of Fire, Frost Shield?
  10. function spawn(NPC)
  11. end
  12. function aggro(NPC, Spawn)
  13. end
  14. function spellLoop(NPC, Spawn) -- Loopback function for spellcasts.
  15. AddTimer(NPC, math.random(1500,2500), "spellChoice")
  16. end
  17. function spellChoice(NPC, Spawn) -- select a spell from table.
  18. local hated = GetMostHated(NPC)
  19. if hated ~= nil then
  20. FaceTarget(NPC, hated)
  21. CastSpell(hated, spells[math.random(#spells)], 3, NPC)
  22. end
  23. AddTimer(NPC, math.random(1500, 2500), "spellLoop")
  24. end
  25. function hailed(NPC, Spawn)
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end