Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API CancelUnitBuff
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} Removes a specific buff from the unit. CancelUnitBuff(unit, buffIndex or "spell" [,"filter" or "rank"]); ---- ;''Arguments'' :;unit: The [[UnitId|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".'' ---- ;''Example'' CancelUnitBuff("player", 1) ;''Result'' Cancels the buff at index 1 assuming it can be canceled by the player. ;''See Also'' :* [[API UnitBuff|UnitBuff]] :* [[API UnitDebuff|UnitDebuff]] :* [[API UnitAura|UnitAura]] ====Notes==== * This function is not protected nor limited in any way to hardware event restriction Blizzard used so far. This function can be called freely from an AddOn to auto-remove a given buff. * This function replaced [[API CancelPlayerBuff|CancelPlayerBuff]] in 3.0. * This function does not work for canceling druid forms, rogue Stealth, death knight presences, or priest Shadowform.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)