From 661087e8c90ed451b83b1cbe14d607d5ba764116 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 4 Jun 2009 21:51:38 +0000 Subject: [PATCH] If the trainer flag is set, we make sure boprecipe flag is set. --- ARLDatamine.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index f6b5bae..5f334fa 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -670,11 +670,13 @@ function addon:ScanToolTip(name,recipelist,reverselookup,isvendor) local linetextr = _G["ARLDatamineTTTextRight" .. i] local textr = linetextr:GetText() local text + if (textr) then text = textl .. " " .. textr else text = textl end + local text = strlower(text) -- Check to see if it's a recipe otherwise break out of the for loop @@ -923,7 +925,7 @@ function addon:ScanToolTip(name,recipelist,reverselookup,isvendor) spellid = reverselookup[recipename] - if not spellid then + if (not spellid) then self:Print("Recipe "..recipename.." has no reverse lookup") end @@ -948,6 +950,10 @@ function addon:ScanToolTip(name,recipelist,reverselookup,isvendor) end end + if (flags[3]) then + boprecipe = true + end + -- Classes -- If we've picked up at least one class flag if (Deathknight) or (Druid) or (Hunter) or (Mage) or (Paladin) or (Priest) or (Shaman) or (Warlock) or (Warrior) then -- 1.7.9.5