|This function is protected, and cannot be called from insecure code while in in combat.
Removes a specific buff from the unit.
CancelUnitBuff("unit", buffIndex [,"filter"]);
- String (unitId) - Unit to cancel the buff from, must be under the player's control.
- Number - index of the buff to cancel, ascending from 1.
- String - any of combination of "HELPFUL|HARMFUL|PLAYER|RAID|CANCELABLE|NOT_CANCELABLE".
- This function does not work for canceling druid forms, rogue Stealth, death knight presences, or priest Shadowform.
Patch 4.0.1 (2010-10-12): Protected while in combat; tainted code cannot cancel stance-affecting buffs even while out of combat.