Classic-BC support

This commit is contained in:
2021-05-09 17:21:52 -05:00
parent 481793c8ff
commit 1798e824b4
4 changed files with 16 additions and 9 deletions

View File

@ -14,6 +14,7 @@ end
local WowVer = select(4, GetBuildInfo())
local IsClassic = WOW_PROJECT_ID and WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
local IsClassicBC = WOW_PROJECT_ID and WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC
local MillingId = 51005
local MillingItemSubType = babbleInv["Herb"]
@ -1382,7 +1383,7 @@ function Breakables:BreakableIsDisenchantable(itemType, itemLevel, itemRarity, i
for i=1,#DisenchantTypes do
if DisenchantTypes[i] == itemType or IsArtifactRelicItem(itemLink) then
-- temp hack for bfa until disenchant item level scales are identified. and for classic until finding the profession level api
if WowVer >= 80000 or IsClassic then
if WowVer >= 80000 or IsClassic or IsClassicBC then
return true
end