WoW:API CancelPlayerBuff: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 17: Line 17:


Removes the first (right-most in the default UI) buff from the player.
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. [[User:Fsdfs|Mind]] 21:11, 19 July 2006 (EDT)


;''See Also''
;''See Also''
Line 28: Line 23:


====Notes====
====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.
* 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)
* This function uses a zero-based index, while UnitBuff() does not.
** '''The Burning Crusades:''' [[API GetPlayerBuff|GetPlayerBuff]]() returns ''0'' if the buff doesn't exist. It stands to reason that this function would then be 1-based in TBC.
Anonymous user