Quantcast

In addon:Scan(): Don't mark the profession as having been scanned if it's a linked profession.

James D. Callahan III [04-15-10 - 04:59]
In addon:Scan(): Don't mark the profession as having been scanned if it's a linked profession.
Filename
ARL.lua
diff --git a/ARL.lua b/ARL.lua
index 325be0a..bd32cd0 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -1762,11 +1762,11 @@ do
 		-- Set the current profession and its level, and update the cached data.
 		Player.current_prof = current_prof
 		Player["ProfessionLevel"] = prof_level
-		Player.has_scanned[current_prof] = true

 		-- Make sure we're only updating a profession the character actually knows - this could be a scan from a tradeskill link.
 		if not IsTradeSkillLinked() and Player.professions[current_prof] then
 			Player.professions[current_prof] = prof_level
+			Player.has_scanned[current_prof] = true
 		end

 		-- Get the current profession Specialty