Hello Robert,
Make sure the startattack or target enemy lines are not in the macro or if you use Gnome Sequencer Enhanced, on the settings of the plugin there is an option for that also.
Not at home at this moment to give you the right spellings or how to get to it, but at least it gives you an idea what to look for.