I'm looking to create a more intelligent "use the trinket" macro for my teams. At the moment, the trinket for all team members is bound to a single key - one gets feared, all use their trinket.

That's actually ok if they've been fear-bombed in PvP, but a waste if it's a single-target fear.

A quick WoW forum search tells me that Fear appears as a debuff, and I recall seeing some time ago a nifty bit of macro code that looks specifically for debuffs by name.

So, before I spend a bit of time this evening working this one out, has anyone already done this? Only use the trinket if feared, I mean?

It was a loooong time ago that I saw a macro stepping through debuffs, so perhaps it's not even possible any more, but anything you guys can share with me would be appreciated.

Thanks in advance.