WoW:API CancelPlayerBuff: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Fixed error with buffIndex/buffId)
Line 8: Line 8:
;''Arguments''
;''Arguments''


:;buffIndex : The id of the buff to remove. Starts at 0 and goes up to 15..
:;buffIndex : The index of the buff to remove. Can be obtained with [[API GetPlayerBuff|GetPlayerBuff]]


----
----
;''Example''
;''Example''
  CancelPlayerBuff(0);
  CancelPlayerBuff(GetPlayerBuff(0,"HELPFUL"))


;''Result''
;''Result''

Revision as of 11:42, 14 February 2006

CancelPlayerBuff -Documentation by Voratus-

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.


See Also

Template:WoW API