Macro help please

Possibly. Depends if the conditions are evaluated immediately or after the target switch.

/targetlasttarget
/use [dead] whatever