Power Infusion macro

Hi, all. Hope everyone’s doing well.

I’m looking for a Power Infusion macro to help spread some haste love as a Holy priest.

This is what I’m currently using:

/script local u,pi=“target”,“Power Infusion”;if IsSpellInRange(pi,u)==1 and GetSpellCooldown(pi)==0 then SendChatMessage(“You just got “…GetSpellLink(pi)…”!”,“WHISPER”,nil,UnitName(u)) end
/cast Power Infusion

Ideally, I’d like to be able to click the ability without a modifier to cast on myself, and with a modifier, I’d like to be able to select a target subsequently and have it whisper-alert the target.

The above macro hasn’t been working well whisper-wise in groups because it doesn’t work cross-server.

Anyway, just curious to see if anyone has a nice PI macro they use that at least alerts the recipient; the conditionals and target options aren’t a requirement, but they sure would be nice. Thanks in advance!

For the conditionals and target options, use this:

/use [nomod,@player][]Power Infusion

Not that the functionality you want (where the cursor turns blue and you click a target) isn’t possible if you have Auto Self-Cast enabled. You might try [@mouseover,help,nodead] instead

It is if you use @none for the default.

#showtooltip
/cast [nomod,@player] [@none] Power Infusion
2 Likes

Oh that’s awesome, thank you! Never knew that conditional was a thing. I’m going to play around to see if I can figure out how to whisper-notify people–and if I can, I’ll be golden. Thank you again!

Today I learned.