WoWInterface - View Single Post - Macro for Power Infusion to only cast on other player or something else on self?
View Single Post
04-16-21, 07:49 PM   #2
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,033
Macros can't do unit comparisons. The best you can do is select based what modifier key you're holding and fallbacks.

For example, this casts Power Infusion if you have a valid mouseover unit and you're not holding a modifier key, otherwise it casts Power Word: Shield on yourself.
/cast [@mouseover,nomod,help,nodead] Power Infusion; [@player] Power Word: Shield
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote