Unfit-1.0

Unfit-1.0

3.8k Downloads

Unfit-1.0 🚫

Patreon Paypal Discord

World of Warcraft library to determine which items are usable or not given the player's class.

API

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

Usage

To access Unfit functions, simply retrieve it from LibStub:

-- Load the library
local Unfit = LibStub("Unfit-1.0")

-- Call the functions
Unfit:IsItemUnusable(131683)

⚠️ Reminder!

If you use this library, please list it as one of your dependencies in the CurseForge admin system. It's a big help! 👍