From 351ca92d8e6e762ebeee12517b88b6df97487964 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Thu, 2 May 2024 00:06:38 -0400 Subject: [PATCH] Fix for druid usability detection in Cataclysm --- ItemCache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ItemCache.lua b/ItemCache.lua index 5c25c69..d9326c6 100644 --- a/ItemCache.lua +++ b/ItemCache.lua @@ -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