API CancelUnitBuff

Removes a specific buff from the unit.

CancelUnitBuff(unit, buffIndex or "spell" [,"filter" or "rank"]);


 * Arguments


 * unit: The unitID of the unit. In the case of this function, the unit must be "player" (or, possibly, "pet", I have not confirmed) since you cannot cancel other player's buffs.
 * buffIndex or "spell" : buffIndex starts at 1 ends at 40 or "spell" is the name of the spell.
 * "filter" or "rank" : "filter" is any of "HELPFUL|HARMFUL|PLAYER|RAID|CANCELABLE|NOT_CANCELABLE" or "rank" is "Rank 1, 2, etc"


 * Not sure exactly what the point of the "filter" option is since you can't cancel a buff that is "HARMFUL" or "NOT_CANCELABLE".

CancelUnitBuff("player", 1)
 * Example


 * Result

Cancels the buff at index 1 assuming it can be canceled by the player.


 * See Also


 * UnitBuff
 * UnitDebuff
 * UnitAura