WoWInterface - View Single Post - How do I use UnitBuff now in 8.0?
View Single Post
07-18-18, 07:11 AM   #3
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
You just can't query by name anymore. You'll have to iterate through all your buffs in a loop and check each of their names until it finds the one you're looking for, by checking their names one by one.

Example from wowpedia:
lua Code:
  1. for i=1,40 do
  2.     local name, icon, _, _, _, etime = UnitBuff("player",i)
  3.     if name == "Summon Chauffeur" or name == "Ban-Lu, Grandmaster's Companion" then
  4.         --do things
  5.     end
  6. end

btw: https://wow.gamepedia.com/Patch_8.0.1/API_changes
Not a complete list, but it has a bunch of stuff.

Last edited by Ammako : 07-18-18 at 07:13 AM.
  Reply With Quote