If a trainer is not found in the trainer list during a scan, that fact will be displayed in the output.
James D. Callahan III [03-14-11 - 08:16]
If a trainer is not found in the trainer list during a scan, that fact will be displayed in the output.
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)