Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. -- Do not remove this comment, it is part of this trigger: Class Buffs
  2. aura_env.button = CreateFrame("Button", "buffButton", aura_env.region, "SecureActionButtonTemplate")
  3.  
  4. aura_env.button:SetAllPoints()
  5. aura_env.button:SetAttribute("unit", "player")
  6. aura_env.button:SetAttribute("type","spell")
  7.  
  8. local _, class, _ = UnitClass("player")
  9. aura_env.class = class;
  10.  
  11. if class == "MAGE" then
  12.  
  13. aura_env.auraID = 1459
  14. aura_env.button:SetAttribute("spell", 1459)
  15.  
  16. elseif class == "PRIEST" then
  17.  
  18. aura_env.auraID = 21562
  19. aura_env.button:SetAttribute("spell", 21562)
  20.  
  21. else
  22.  
  23. aura_env.auraID = 6673
  24. aura_env.button:SetAttribute("spell", 6673)
  25.  
  26. end
  27.  
  28. -- Do not remove this comment, it is part of this trigger: Arcane Intellect Missing Members
  29. local _, class, _ = UnitClass("player")
  30. aura_env.class = class;
  31.  
  32. if class == "MAGE" then
  33.  
  34. aura_env.auraID = 1459
  35. aura_env.button:SetAttribute("spell", 1459)
  36.  
  37. elseif class == "PRIEST" then
  38.  
  39. aura_env.auraID = 21562
  40. aura_env.button:SetAttribute("spell", 21562)
  41.  
  42. else
  43.  
  44. aura_env.auraID = 6673
  45. aura_env.button:SetAttribute("spell", 6673)
  46.  
  47. end
  48.  
  49. -- Do not remove this comment, it is part of this trigger: Battle Shout Missing Members
  50. local _, class, _ = UnitClass("player")
  51. aura_env.class = class;
  52.  
  53. if class == "MAGE" then
  54.  
  55. aura_env.auraID = 1459
  56. aura_env.button:SetAttribute("spell", 1459)
  57.  
  58. elseif class == "PRIEST" then
  59.  
  60. aura_env.auraID = 21562
  61. aura_env.button:SetAttribute("spell", 21562)
  62.  
  63. else
  64.  
  65. aura_env.auraID = 6673
  66. aura_env.button:SetAttribute("spell", 6673)
  67.  
  68. end
  69.  
  70. -- Do not remove this comment, it is part of this trigger: Power Word: Fortitude Missing Members
  71. local _, class, _ = UnitClass("player")
  72. aura_env.class = class;
  73.  
  74. if class == "MAGE" then
  75.  
  76. aura_env.auraID = 1459
  77. aura_env.button:SetAttribute("spell", 1459)
  78.  
  79. elseif class == "PRIEST" then
  80.  
  81. aura_env.auraID = 21562
  82. aura_env.button:SetAttribute("spell", 21562)
  83.  
  84. else
  85.  
  86. aura_env.auraID = 6673
  87. aura_env.button:SetAttribute("spell", 6673)
  88.  
  89. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement