From caef63a2da296051dbe6703cdc57300ed1f72610 Mon Sep 17 00:00:00 2001 From: Crum Date: Thu, 6 Dec 2018 21:39:19 -0600 Subject: [PATCH] ooops --- !Compatibility/api/wowAPI.lua | 8 +------- !Compatibility/libs/QuestItemStarterDB.lua | 5 ----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/!Compatibility/api/wowAPI.lua b/!Compatibility/api/wowAPI.lua index aae8b2e..1ffdbfc 100644 --- a/!Compatibility/api/wowAPI.lua +++ b/!Compatibility/api/wowAPI.lua @@ -564,18 +564,12 @@ function GetQuestItemStarterInfo(link) local isQuestItem, isQuestStarter, invalidQuestItem = false, false, false if link then - local itemType = select(6, GetItemInfo(link)) + local itemType = select(6, GetItemInfo(match(link, "item:(%d+)"))) if itemType and itemType == "Quest" then isQuestItem = true end - for _, info in pairs(QIS.QuestItemIDs) do - if match(link, "item:(%d+):") == info then - isQuestItem = true - end - end - for _, info in pairs(QIS.QuestItemKeyIDs) do if match(link, "item:(%d+):") == info then isQuestItem = true diff --git a/!Compatibility/libs/QuestItemStarterDB.lua b/!Compatibility/libs/QuestItemStarterDB.lua index 05c35a5..d5a5fc2 100644 --- a/!Compatibility/libs/QuestItemStarterDB.lua +++ b/!Compatibility/libs/QuestItemStarterDB.lua @@ -215,11 +215,6 @@ lib.QuestItemStarterIDs = { "23184", -- Flame of Darnassus } --- Items that are quest items and they are not tagged as quest items. -lib.QuestItemIDs = { - "3082", -- Dargol's Skull -} - -- Keys that are quest items and they are not tagged as quest items. lib.QuestItemKeyIDs = { "2629", -- Intrepid Strongbox Key