Could this be something close to what you want?
Code:
/cast [target=focus,help][help][target=targettarget,help][target=player]Hand of Protection
If the unit saved as your focus target is a friend then:
Cast Hand of Protection on the unit saved as your focus target.
Else, if the currently targeted unit is a friend then:
Cast Hand of Protection on the currently targeted unit.
Else, if the currently targeted unit's currently targeted unit is a friend then:
Cast Hand of Protection on the currently targeted unit's currently targeted unit.
Otherwise:
Cast Hand of Protection on you.
Try using http://www.macroexplain.com/, I find it helps a lot when trying to figure out complicated macros.
Connect With Us