Would anyone be able to tell me if this macro is viable? I couldn’t find any information about the group modifier, so if you are able to assist, it would be much appreciated. Thank you!
/cast [group:raid,@mouseover,help,nodead][group:party,@mouseover,exists,nodead][@FRIEND,exists,nodead][nogroup,player] Power Infusion
It only overrides the Friend part if the conditions are true, since it’s first in line. So if you’re not mousing over something, the condition is not met and moves to check the next condition.
If I mouseover a friendly, it will PI them. If I’m not mousing over a friendly, then the next condition is to check and see if one of my Friends exists near me. If the first one isn’t around, it checks for the second friend.
If none of the conditions are met, then it just casts on myself. Helps to cover pugs and guild runs, so I can just target someone I don’t know, but if a friend is with me, they are prioritized so long as I don’t hover over someone else first.
What Skelzarr said. Macros are executed top down, left to right and will trigger on the first true condition.
Mouseover (if friendly and not dead) > Friend (if friendly and not dead) > default cast behavior (target > self, depending on your Self Cast setting)
If any of the above conditions are true but the intended target happens to be out of range, phased, etc. then it will cast on you (this is only possible because PI is off the GCD).