WoW:API CancelPlayerBuff: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Fixed error with buffIndex/buffId)
mNo edit summary
Line 18: Line 18:
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''

Revision as of 01:11, 20 July 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.


Notes

this function uses a zero-based index, while UnitBuff() does not. Mind 21:11, 19 July 2006 (EDT)

See Also

Template:WoW API