Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API GameTooltip SetPlayerBuff

From WoW Classic Wiki

Template:Stub/Begin This article or section is a World of Warcraft API stub.   You can help expand it by clicking  edit this page  above.

  • Please see How to edit API pages for a list of boilerplates and page tags to use for different types of API related pages.
  • Please be aware of the new rules of API pages as, we no longer just slap "{{WoW API}}" at the bottom of pages.

Template:Stub/End

MUST access it in this fasion, if you want to specify what TYPE of buff you want to set the tooltip to.


local buffIndex, untilCancelled = GetPlayerBuff(blah.index, "HARMFUL");

GameTooltip:SetPlayerBuff(buffIndex);


From what I can understand, GetPlayerBuff sets what type of buff-type that SetPlayerBuff will use. It will use whatever last type of buff you specified in GetPlayerBuff, hence the reason you should specify GetPlayerBuff right before you call SetPlayerBuff.


I also tried to have GameTooltip:SetPlayerBuff(blah.index), seeing as how blah.index and buffIndex are the same number, but it wouldn't work. You MUST have it as above.


Options for GetPlayerBuff are : HELPFUL|HARMFUL|PASSIVE