9
3

Braxx.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/MeetingOfTheMinds/Braxx.lua
  3. Script Author : Neveruary
  4. Script Date : 2021.10.05 12:10:19
  5. Script Purpose : Governs the behavior of Braxx in A Meeting of the Minds.
  6. : Spell functions de-activated pending proper spell implementation on mobs.
  7. --]]
  8. -- spells = {Gaze, Glare of Eradication, Gaze of Commandment, Gaze of Writhing Agony}
  9. function spawn(NPC)
  10. end
  11. function aggro(NPC, Spawn)
  12. AddTimer(NPC, math.random(1500,2500), "spellLoop")
  13. end
  14. function spellLoop(NPC, Spawn) -- referred from aggro. 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