I'm using the following 2 macros to setup and fire the Polymorphs on my Mage team:

/focus
/run SetRaidTarget("target", 6)
/stopmacro [@focus, noexists]
/stopcasting
/clearfocus [@focus, dead] [@focus, noexists]
/cast [@focus] Polymorph
which works fine most of the time.

I have the "/stopcasting" to allow me to easily resheep mid-combat if a sheep breaks.

I'm having problems if I setup the targets and then corner pull the group to the rest of my mages, firing the CC as the group comes round the corner.

What might happen is that one of the potential sheep was out of LoS or perhaps out of range and so one mage doesn't cast sheep.

If I hit the CC button again, the "/stopcasting" will stop the other mages from completing their own polymorphs.

So, my queston is, is there a way to only stop the macro if they're not casting Polymorph, much like you can modify a /cast to only fire when you're not channeling a specific spell, eg: "/cast [nochanneling:Hellfire] Hellfire" to allow you to spam Hellfire macro.

I have googled around but can't find anything and it seems like it's probably not a problem single boxers encounter.

Any ideas?