Viable PI Macro?

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

You’re really overthinking it.

#showtooltip
/cast [@mouseover,help,nodead] [@FRIEND,help,nodead] [] Power Infusion
/cast [@player] Power Infusion

Thank you for responding! Wouldn’t the @mouseover always override the @FRIEND part of the macro? This was the main reason I added the “group” part.

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.

Personally, my macro looks like this:

#showtooltip
/cast [@mouseover,help,exists][@FRIEND,exists][@FRIEND,exists][@player]Power Infusion

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.

Hope that clears it up!

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).

So this is new to me, what’s the difference between [help] and [friend]?

I’ve always used help, I never heard of friend and even looking it up I find nothing online.

So how does friend behave differently from help?

@friend is a placeholder for someone’s name so you cast on them specifically. help is a test to check if a unit exists and is friendly.