
Originally Posted by
Ughmahedhurtz
Don't overthink it.

Here's what happens if you overthink it.
I have one button that does it all. Ideally SmartBuff (the addon) can do all of this, but it's super buggy and doesn't support group buffs anymore, so I wrote my own macros to do what it can't.
My objective here is to buff my target (out of group) with whatever they need, and if they don't need anything, check all group members and buff appropriately.
Code:
/click ActionButton9
/run UA=UnitAura UL=UnitLevel UP=UnitIsPlayer PWF="Power Word: Fortitude" POF="Prayer of Fortitude" EM=EditMacro GM=GetMacroIndexByName
/run b=0 for i = 1,20 do name = UA("target", i) if (name==PWF or name==POF) then b=1 end end
/run L={1,2,14,26,38,50,61} for i=1,7,1 do if UL("target")<L[i] then r=i-1 return end end
/run P={"player","party1","party2","party3","party4"} Cnt=0 pn="" for p=1,5 do fort=0 for i=1,20 do name=UA(P[p],i) if (name==PWF or name==POF) then fort=1 end end if fort==1 then Cnt=Cnt+1 else pn=P[p] end end
/run Mcr="" if r~=0 and b==0 and UP("target") then Mcr="/cast "..PWF.."(Rank "..r..")" elseif 5-Cnt>2 then Mcr="/cast "..POF elseif pn~="" then Mcr="/cast [@"..pn.."] "..PWF end
/run EM(GM("PWF"),"PWF",1,Mcr ,1,1)
/click [nocombat] ActionButton8
/click SmartBuff_KeyButton
/cleartarget
This does a few steps:
1. Click my FTL assist macro to get the target.
2. Check if target is friendly and has PW:Fortitude or Prayer of Fortitude. If they don't then cast the level appropriate buff on them.
3. Check each party member for PW:Fortitude or Prayer of Fortitude, if 3 or more players don't have it, cast the group buff, otherwise cast individual buffs.
4. If nobody has gotten a buff yet, click the SmartBuff key, which handles all the self and other simple buffs (Inner Fire, Shadow Protection, Fear Ward etc).
Note:
ActionButton9 is my big assist macro.
ActionButton8 is where I put an empty macro call PWF, which gets edited by this macro and then clicked on.
All the complicated code stuff only works out of combat.
I have similar macros for mage, and for my warlock to cast fire shield on tank (which also isn't supported by SmartBuff).
I just mash this button between pulls, and everyone gets buffed if they need to.
Connect With Us