im using 1 shaman as my my main healer and I need a 3 part macro

/target anubizx
/cast [target=targettargettarget,help,nodead,exists] Healing Wave; [target=targettarget,help,nodead,exists] Healing Wave; [target=target,help,nodead,exists] Healing Wave


This is what my macro looks like now

what I want it to do is heal anubizx if he has no target
If I do have a target I want him to heal that target
and when I am fighting I want him to heal anubizx's target( a mob) and target the mobs target and heal that target.

will this work?