Also check for garrison disenchanting
ckaotik opened this issue ยท 1 comments
When players builds the enchanting hut they get a disenchanting skill of 1 that can be used when they're at said building.
Something like this could work:
local enchBuildingIDs = {93, 125, 126}
if skillRequired == 1 then
local buildings = C_Garrison.GetBuildings()
for _, building in pairs(buildings) do
if tContains(enchBuildingIDs, building.buildingID) then
-- player can disenchant this item
end
end
end