Skip to content

Commit

Permalink
Fix for druid usability detection in Cataclysm
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed May 2, 2024
1 parent d8cf122 commit 351ca92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ItemCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ local IsItemUsable, IsItemUnusable
do
-- WARRIOR, PALADIN, HUNTER, ROGUE, PRIEST, DEATHKNIGHT, SHAMAN, MAGE, WARLOCK, MONK, DRUID, DEMONHUNTER
local ID = {}
for i = 1, GetNumClasses() do
for i = 1, 15 do -- Don't use GetNumClasses() because there are currently gaps between the class IDs
local classInfo = C_CreatureInfo.GetClassInfo(i)
if classInfo then
ID[classInfo.classFile] = classInfo.classID
Expand Down

0 comments on commit 351ca92

Please sign in to comment.