Skip to content

Commit d34f646

Browse files
committed
support MoP Classic move of GetSpecialization and GetSpecializationInfo into C_SpecializationInfo table
1 parent 1ddd95c commit d34f646

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,6 @@
111111
"utf8": "disable"
112112
},
113113
"Lua.workspace.library": [
114-
"~/.vscode/extensions/ketho.wow-api-0.20.7/Annotations/Core"
114+
"~/.vscode/extensions/ketho.wow-api-0.20.8/Annotations/Core"
115115
]
116116
}

AutoGear.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ local GetDetailedItemLevelInfo = (C_Item and C_Item.GetDetailedItemLevelInfo) or
7373
local GetItemInfo = GetItemInfo or (C_Item and C_Item.GetItemInfo)
7474
local GetItemInfoInstant = GetItemInfoInstant or (C_Item and C_Item.GetItemInfoInstant)
7575
local GetNumTalentTabs = GetNumSpecializations or GetNumTalentTabs
76+
local GetSpecialization = GetSpecialization or (C_SpecializationInfo and C_SpecializationInfo.GetSpecialization)
77+
local GetSpecializationInfo = GetSpecializationInfo or (C_SpecializationInfo and C_SpecializationInfo.GetSpecializationInfo)
7678
local GetMouseFocus = GetMouseFocus or (GetMouseFoci and (function()
7779
local frames = GetMouseFoci()
7880
return frames and frames[1];
@@ -2552,7 +2554,7 @@ AutoGearFrame:SetScript("OnEvent", function (this, event, arg1, arg2, arg3, arg4
25522554
return
25532555
end
25542556
else
2555-
AutoGearPrint("AutoGear: No inventory type was found for item "..link.." from CHAT_MSG_LOOT event message \""..message.."\". Scanning anyway in case the looted item was gear.", 3)
2557+
AutoGearPrint("AutoGear: No inventory type was found for looted item "..link.." from CHAT_MSG_LOOT event message \""..message.."\". Scanning anyway in case it was gear.", 3)
25562558
end
25572559
else
25582560
AutoGearPrint("AutoGear: No item link was found in CHAT_MSG_LOOT event message \""..message.."\". Scanning anyway in case the looted item was gear.", 3)

0 commit comments

Comments
 (0)