Advertisement
Guest User

weakaura buffs

a guest
Feb 14th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. local buffs = {
  2. "Greater Blessing of Salvation",
  3. "Arcane Brilliance",
  4. "Arcane Intellect",
  5. "Dampen Magic",
  6. "Amplify Magic",
  7. "Divine Spirit",
  8. "Prayer of Spirit",
  9. "Regrowth",
  10. "Healing Way",
  11. "Ancestral Healing",
  12. "Bloodthirst",
  13. "Sanctuary",
  14. "Julie's Blessing",
  15. "Thorns",
  16. "Renew",
  17. "Rejuvenation",
  18. }
  19.  
  20. for i=1,#buffs do
  21. if IsInRaid() then
  22. print(IsInRaid());
  23. local name = "SaveBuffsButton"..i;
  24. local buff = buffs[i];
  25. --print(name, buff);
  26.  
  27. local b = _G[name] or CreateFrame('Button', name, nil, 'SecureActionButtonTemplate,SecureHandlerBaseTemplate');
  28. b:SetAttribute('type', 'macro');
  29.  
  30. local macrotext = ""
  31. if #buffs>i then
  32. macrotext = macrotext..'/click SaveBuffsButton'..(i+1)..'\n';
  33. end
  34. macrotext = macrotext..'/cancelaura '..buff..'\n';
  35. --print(macrotext);
  36. b:SetAttribute('macrotext', macrotext);
  37. end
  38. end
  39.  
  40. local name = "SB"
  41. local b = _G[name] or CreateFrame('Button', name, nil, 'SecureActionButtonTemplate,SecureHandlerBaseTemplate');
  42. b:SetAttribute('type', 'macro');
  43. b:SetAttribute('macrotext', '/click SaveBuffsButton1');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement