edited:

would a macro simlar to this do the job? :

/stopattack
/target [target=char1,nodead]
/assist
/startattack [harm]