Cast spell when Friendly target only.

Hello,
I'm trying to make a macro that ONLY let's me cast a spell when I have a FRIENDLY unit targeted.
I looked around on google but could not find any working one.
Any help appreciated.
I'm trying to make a macro that ONLY let's me cast a spell when I have a FRIENDLY unit targeted.
I looked around on google but could not find any working one.
Any help appreciated.