m
Move page script moved page BuffId to WoW:BuffId without leaving a redirect
m (catfix, Replaced: {{wowapitype}} → {{wowapitype}}<br>) |
m (Move page script moved page BuffId to WoW:BuffId without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{wowapitype}} | {{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. | 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) | 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" | {| class="darktable" | ||
|+ Vanilla WoW | |||
|----- | |----- | ||
!HELPFUL | !HELPFUL | ||
| Line 24: | Line 26: | ||
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. | 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" | {| class="darktable" | ||
|+ Burning Crusade | |||
|----- | |----- | ||
!HELPFUL | !HELPFUL | ||