http://www.wowinterface.com/download...php?s=&id=3994
Adds a new scriptable command, IsBuffActive(<buff>, [<unit>]);
allows you to check whether a particular Buff/Debuff is currently active on a unit.
Useful for writing Macros that perform different actions, depending on whether or not a particular buff/debuff is active.