LibAppropriateItems-1.0
Simple library for checking whether a given item is appropriate for a given class.
"Appropriate" is shorthand for "Blizzard says you can equip it and learn the transmog appearance".
Usage:
local LAI = LibStub("LibAppropriateItems-1.0")
if LAI:CanEquip(itemLink) then
print("Can equip")
end
if LAI:IsAppropriate(itemLink, "WARRIOR") then
print("A warrior can learn this appearance")
end
Comments