/startattack help

currently with the stupid design of avenging crusader i’m using

#showtooltip Avenging Wrath
/cast [@target] Avenging Crusader
/cast [@target] Avenging Wrath

avenging crusader buffs my auto attack damage by 1000%, so i’d like to have my auto running during it

the problem is, baseline /cast avenging crusader will drop my friendly target when i’m healing to target an enemy

but using [@target] function to prevent the unwanted swapping, now makes my autoattack not start ever even when i’m using the crusader strike form of avenging crusader

is there any way to make it start my auto attack ONLY WHEN im targeting an enemy?