WoW:API CancelPlayerBuff: Difference between revisions
Jump to navigation
Jump to search
CancelPlayerBuff -Documentation by Voratus-
mNo edit summary |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''CancelPlayerBuff''' ''-Documentation by Voratus-''</center> | <center>'''CancelPlayerBuff''' ''-Documentation by Voratus-''</center> | ||
Line 30: | Line 31: | ||
* Surprisingly 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. | * Surprisingly 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. | ||
(tested on live servers 2.0) | (tested on live servers 2.0) | ||
Revision as of 17:30, 6 January 2007
Removes a specific buff from the player.
CancelPlayerBuff(buffIndex);
- Arguments
- buffIndex
- The index of the buff to remove. Can be obtained with GetPlayerBuff
- Example
CancelPlayerBuff(GetPlayerBuff(0,"HELPFUL"))
- Result
Removes the first (right-most in the default UI) buff from the player.
- Notes
this function uses a zero-based index, while UnitBuff() does not. Mind 21:11, 19 July 2006 (EDT)
- See Also
Notes
- Surprisingly 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.
(tested on live servers 2.0)