Im not sure if i did a similar thread before , i need a macro where if my target is out of range the spell will be casted to another target or myself.
Something like:
/cast Raid1 Prayer of Mending
/cast Raid2 Prayer of Mending
/cast [player@] Prayer of Mending