From e6c3415f99abc4702e3e34d5cf20420c2384149b Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 2 Apr 2011 07:56:00 -0500 Subject: [PATCH] Logic fixes. --- Scanner.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scanner.lua b/Scanner.lua index e05e571..1bf45a8 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -112,7 +112,7 @@ do -- @return Does a comparison of the information in your internal ARL database, and those items which are available on the trainer. -- Compares the acquire information of the ARL database with what is available on the trainer. function addon:ScanTrainerData(autoscan) - if not _G.UnitExists("target") and not _G.UnitIsPlayer("target") and not _G.UnitIsEnemy("player", "target") then -- Make sure the target exists and is a NPC + if not _G.UnitExists("target") or _G.UnitIsPlayer("target") or _G.UnitIsEnemy("player", "target") then if not autoscan then self:Print(L["DATAMINER_TRAINER_NOTTARGETTED"]) end @@ -687,7 +687,7 @@ do local RECIPE_ITEM_TO_SPELL_MAP function addon:ScanVendor() - if not (_G.UnitExists("target") and (not _G.UnitIsPlayer("target")) and (not _G.UnitIsEnemy("player", "target"))) then -- Make sure the target exists and is a NPC + if not _G.UnitExists("target") or _G.UnitIsPlayer("target") or _G.UnitIsEnemy("player", "target") then self:Print(L["DATAMINER_VENDOR_NOTTARGETTED"]) return end @@ -703,7 +703,7 @@ do table.wipe(output) - table.insert(output, "ARL Version: @project-version@") + table.insert(output, ("ARL Version: %s"):format(self.version)) table.insert(output, L["DATAMINER_VENDOR_INFO"]:format(vendor_name, vendor_id)) if not RECIPE_ITEM_TO_SPELL_MAP then -- 1.7.9.5