GameTooltip:SetPlayerBuff
Jump to navigation
Jump to search
Links |
---|
This is no longer a part of the World of Warcraft API.
|
Sets a GameTooltip to a player buff of the type last used in GetPlayerBuff.
GameTooltip:SetPlayerBuff(buffIndex)
Arguments
- buffIndex
- number - The index of the buff to set in the game tooltip (affected by the filter used in GetPlayerBuff)
Details
- It will use whatever the last type of buff you specified in GetPlayerBuff was, hence the reason you should specify GetPlayerBuff right before you call SetPlayerBuff.
- Options for the GetPlayerBuff filter are : HELPFUL|HARMFUL|PASSIVE
Example
Sets the tooltip to the first harmful buff.
local buffIndex, untilCancelled = GetPlayerBuff(1, "HARMFUL");
GameTooltip:SetPlayerBuff(buffIndex);
Patch changes
- Patch 3.0.2 (2008-10-14): Replaced with GameTooltip:SetUnitBuff().