Penance Macro help plz

I have a level 20’s priest and I would like penance to do the following if possible.

1- If nothing is targeted, it’ll just heal me.
2- If a friendly player is targeted, it’ll heal them.
3- If an unfriendly is targeted, it will attack it.
4- If anything is targeted, and I press the alt key, it will heal me.

Thanks

Not sure if this is what you are looking for but perhaps you can at least get some ideas and/or modify it to your liking:

Holy, ty for that. Yes, I read your article and it’s close. At the end you said that you could possibly combine them by using “shift”. I’ll assume that “alt” would be the same. So, now, just need to find out how to combine them. :slight_smile:

/cast [@player, mod:alt][] Penance

/cast [notarget,@player][harm,help,mod:alt,@player][] Penance

you didn’t specify combat so I didn’t add it.