Quantcast
WoWInterface - View Single Post - Knowing if an equippable item is "valid" for the player character's class
View Single Post
08-15-18, 04:17 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,510
I would hazard a guess that if Blizzard has item tooltips showing specific spec requirements there may be a value on the GetItemInfo function's return values that offer that number. Maybe even a class value, if you are lucky. And hopefully primary stat, secondary stat etc info and that it is identifiable.

Short of that, the table info list idea might be the way to go ..

Create a table of class-armor combos and class-stat combos and check to see if the values match the item info when looking at an item .. if it passes the tests its a valid item.

Thats how I would do it anyway
__________________
  Reply With Quote