You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
406 B
11 lines
406 B
local Tests = WoWUnit and WoWUnit('Unfit', 'PLAYER_LOGIN', 'GET_ITEM_INFO_RECEIVED')
|
|
if not Tests then return end
|
|
|
|
local Replace, IsFalse, IsTrue = WoWUnit.Replace, WoWUnit.IsFalse, WoWUnit.IsTrue
|
|
local Unfit = LibStub('Unfit-1.0')
|
|
|
|
function Tests:Leather()
|
|
Replace(Unfit.unusable[4], 2, true)
|
|
IsFalse(Unfit:IsItemUnusable(2318)) -- light leather
|
|
IsTrue(Unfit:IsItemUnusable(6085)) -- leather chest
|
|
end
|
|
|