Macro for Power Infusion to only cast on other player or something else on self?

Is it possible to make a macro to cast Power Infusion on mouseover other players…and NEVER on myself… and to make it even better, if I do it onmyself, have it cast something else… maybe shield ot renew or something instant.

thanks!

You can set it up so it won’t fall back to you but you can’t test if your current target is a specific mob, not even yourself.

This will only cast on your target and not fallback to yourself.

#showtooltip
/cast [@target] Power Infusion

So that will cast Power Infusion on the Target… but NOT on me? Can I do something like this…

/cast [@target] Power Infusion
/cast [@player] renew

?

You could do something like:

#showtooltip
/cast [help] Power Infusion; [@player] Renew

But again, if you target yourself it’ll cast PI on you.

From a practical standpoint, why would you want to cast something different on yourself if you fat-finger PI? Just let it not cast and press a different key to cast something useful.