From 802103cee40021fc1e33dcef7b295d7b97adff56 Mon Sep 17 00:00:00 2001 From: John Pasula Date: Thu, 16 Dec 2010 09:23:27 -0700 Subject: [PATCH] Fix a small bug where when scanning a trainer, it would just say Trainer flag needs to be set, without listing the spell ID missing for the flag. --- Scanner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scanner.lua b/Scanner.lua index 25e68d7..d7ade87 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -675,7 +675,7 @@ do local targetname = UnitName("target") -- Get its name local targetID = tonumber(string.sub(UnitGUID("target"), -12, -9), 16) -- Get the NPC ID - if not IsTradeskillTrainer() then -- Are we at a trade skill trainer? + if not IsTradeskillTrainer() then -- Are we at a trade skill trainer? if not autoscan then self:Print(L["DATAMINER_SKILLLEVEL_ERROR"]) end @@ -737,7 +737,7 @@ do teachflag = true if not recipe:IsFlagged("common1", "TRAINER") then - tinsert(output, ": Trainer flag needs to be set.") + tinsert(output, spell_id..": Trainer flag needs to be set.") end end else -- 1.7.9.5