Stopmacro, Help, and Friendly Mobs

I’m looking for help with a macro. Here’s a portion of what I’m rollin’ wit:

/stopmacro [@playertarget, help]

Now, the help I need is for only melee classes. The ‘help’ part is supposed to stop the macro while I’m targeting a friendly npc (in this case).

The issue that I’m having is with melee abilities and NPCs that cannot be affected by certain spells (e.g. - heals); these NPCs don’t behave the same way as ones that can be healed.

For example, when I use the above /stopmacro line with Sinister Strike in a macro, and I have the ‘friendly NPC’ targeted but I’m facing a neutral or hostile mob (frontal cone), then it will switch to the other NPC and turn on auto attack.

Is there something else that I could add to that /stopmacro line in order to prevent melee attacking abilities from targeting mobs in my frontal range while having these particular friendly NPCs selected?

Can you post a full example of one of your macros?
Also, [@playertarget,help] can be simplified to just [help]

#showtooltip Rockbiter
/follow focus
/assist focus
/stopmacro [@playertarget, help]
/stopmacro [@playertarget, dead]
/stopmacro [@playertarget, noexists]
/cast Rockbiter

Well… it can be simplified to the following at least:

#showtooltip
/follow [@focus,exists]
/assist [@focus,exists]
/stopmacro [help] [dead] [noexists]
/cast Rockbiter