Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local buffs = {
- "Greater Blessing of Salvation",
- "Arcane Brilliance",
- "Arcane Intellect",
- "Dampen Magic",
- "Amplify Magic",
- "Divine Spirit",
- "Prayer of Spirit",
- "Regrowth",
- "Healing Way",
- "Ancestral Healing",
- "Bloodthirst",
- "Sanctuary",
- "Julie's Blessing",
- "Thorns",
- "Renew",
- "Rejuvenation",
- }
- for i=1,#buffs do
- if IsInRaid() then
- print(IsInRaid());
- local name = "SaveBuffsButton"..i;
- local buff = buffs[i];
- --print(name, buff);
- local b = _G[name] or CreateFrame('Button', name, nil, 'SecureActionButtonTemplate,SecureHandlerBaseTemplate');
- b:SetAttribute('type', 'macro');
- local macrotext = ""
- if #buffs>i then
- macrotext = macrotext..'/click SaveBuffsButton'..(i+1)..'\n';
- end
- macrotext = macrotext..'/cancelaura '..buff..'\n';
- --print(macrotext);
- b:SetAttribute('macrotext', macrotext);
- end
- end
- local name = "SB"
- local b = _G[name] or CreateFrame('Button', name, nil, 'SecureActionButtonTemplate,SecureHandlerBaseTemplate');
- b:SetAttribute('type', 'macro');
- b:SetAttribute('macrotext', '/click SaveBuffsButton1');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement