I think you need to have modifiers with the @focustarget callout.

I use "[@party1, exists, harm] []" for all my macros. That way if party1 isn't targeting anything or is targeting a friendly, the spell will default to your target.