Guest User

General.lua

a guest
Nov 17th, 2022
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. local _, race = UnitRace("player")
  2.  
  3. function ClassTimer:Races()
  4. return race == "Scourge" and {
  5. GetSpellInfo(20577), -- Cannibalize
  6. (GetSpellInfo(7744)), -- Will of the Forsaken --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  7. }
  8. or race == "Orc" and {
  9. (GetSpellInfo(20572)), -- Blood Fury --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  10. }
  11. or race == "Tauren" and {
  12. (GetSpellInfo(20549)), -- War Stomp --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  13. }
  14. or race == "Troll" and {
  15. (GetSpellInfo(26297)), -- Berserking --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  16. }
  17. or race == "BloodElf" and {
  18. GetSpellInfo(25046), -- Arcane Torrent
  19. (GetSpellInfo(28734)), -- Mana Tap --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  20. }
  21. or race == "Gnome" and {
  22. (GetSpellInfo(20589)), -- Escape Artist --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  23. }
  24. or race == "Dwarf" and {
  25. (GetSpellInfo(20594)), -- Stoneform --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  26. }
  27. or race == "Draenei" and {
  28. (GetSpellInfo(28880)), -- Gift of the Naaru --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  29. }
  30. or race == "Dracthyr" and {
  31. GetSpellInfo(357214), -- Wing Buffet
  32. (GetSpellInfo(368970)), -- Tail Swipe --Important: Double parentheses are necessary because the last item in a table contains all the values from the function call and we only want the first one.
  33. }
  34. or {}
  35. end
Add Comment
Please, Sign In to add comment