World of Warcraft library to determine which items are usable or not given the player's class.
Function | Input | Return |
---|---|---|
.IsItemUnusable(item) | The item name, ID, hyperlink or string | boolean |
.IsClassUnusable(class, subclass, [slot]) | A class, subclass and inventory type as returned by GetItemInfo | boolean |
.Embed(object) | A table you want to embed the rest of the API into. | nil |
To access Unfit functions, simply retrieve it from LibStub:
-- Load the library
local Unfit = LibStub("Unfit-1.0")
-- Call the functions
Unfit:IsItemUnusable(131683)
If you use this library, please list it as one of your dependencies in the CurseForge admin system. It's a big help! 👍