Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:BuffId
(section)
Jump to navigation
Jump to search
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!
{{wowapitype}} {{removedapi|3.0|Player-specific buff information functions have been removed; replaced by {{api|UnitAura}} and derivatives. * This page documents the old behavior.}} Handling player buffs and debuffs are a tad different than unit buffs/debuffs. [[API GetPlayerBuff|GetPlayerBuff(buffId, buffFilter)]] will return a value for buffIndex, which is used for all the player buff functions and GameTooltip:SetPlayerBuff(buffIndex). It is easy to get the two values confused because often they are the same. buffId directly correlates to the buff frames in the top right area of the screen. When a buff wears off all buffs to the right of it are shifted over, both buffId and buffIndex can change at this time! Here are the ID's and filters for each frame as seen by the user (TempEnchant frames aren't shown as they don't have ID's) {| class="darktable" |+ Vanilla WoW |----- !HELPFUL | 7 || 6 || 5 || 4 || 3 || 2 || 1 | 0 |- class="alt" !HELPFUL | 15 || 14 || 13 || 12 || 11 || 10 || 9 | 8 |----- !HARMFUL | 7 || 6 || 5 || 4 || 3 || 2 || 1 | 0 |} buffIndex works in a similar way, but there is no distinction between buffs and debuffs, they're all indexed together. This is the whole reason [[API GetPlayerBuff|GetPlayerBuff(buffId, buffFilter)]] is provided. Remember that both buffId and buffIndex can change when auras change. Both values are indexed sequentially starting at 0 at all times, you won't encounter a "gap" if a buff has worn off in the middle of the list. {| class="darktable" |+ Burning Crusade |----- !HELPFUL | 8 || 7 || 6 || 5 || 4 || 3 || 2 | 1 |----- !HELPFUL | 16 || 15 || 14 || 13 || 12 || 11 || 10 | 9 |----- !HARMFUL | 8 || 7 || 6 || 5 || 4 || 3 || 2 | 1 |} Both values are indexed sequentially starting at 1 at all times, you won't encounter a "gap" if a buff has worn off in the middle of the list. Note: buffId and buffIndex values should ''not'' be kept between callbacks, as the buffs they refer to may change, or even cease to exist.
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)