Battle rez/rez/heal macro

Trying to build a macro I’ve used before, but it’s just not working.
The goal:
If in combat, and dead, cast brez on mouseover.
If not in combat, and dead, cast rez on mouseover.
If not dead, cast heal on mouseover.

Example:
/cast [@mouseover, combat, dead, help] Rebirth; [@mouseover, dead, help] Revitalize; [@mouseover, help] Rejuvination

Tried all kinds of variations. I’ve been able to get the rez/heal to work, even with the brez conditional in the macro, but the brez hasn’t worked any way I try.

Try this:

/cast [@mouseover,combat,dead,noharm,exists] Rebirth; [@mouseover,dead,noharm,exists] Revitalize; [@mouseover,nodead,noharm,exists] Rejuvenation

#showtooltip
/cast [@mouseover,combat,help,dead] [combat,help,dead] Rebirth; [@mouseover,help,dead] [help,dead] Revitalize; [@mouseover,help,nodead] [] HEAL_SPELL

Version I use:

1 Like