From cf242a9bba7786bae843d24fb18dcde8494c6fb4 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 14 Mar 2011 03:16:30 -0500 Subject: [PATCH] If a trainer is not found in the trainer list during a scan, that fact will be displayed in the output. --- Scanner.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scanner.lua b/Scanner.lua index 792173e..439fd27 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -204,6 +204,10 @@ do recipe:AddTrainer(trainer_id) table.insert(missing_spell_ids, spell_id) + if not private.trainer_list[trainer_id] then + table.insert(output, ("%s was not found in the trainer list."):format(_G.UnitName("target"))) + end + if not recipe:HasFilter("common1", "TRAINER") then recipe:AddFilters(F.TRAINER) -- 1.7.9.5