diff Export.lua @ 118:5cb881417bbf v55

Added Antorus to auto-logging.
author yellowfive
date Fri, 24 Nov 2017 19:46:27 -0800
parents bccce18e12cb
children e31b02b24488
line wrap: on
line diff
--- a/Export.lua	Wed Oct 04 11:18:33 2017 -0700
+++ b/Export.lua	Fri Nov 24 19:46:27 2017 -0800
@@ -351,11 +351,12 @@
 	if spec then
 	
 		-- sometimes this event can fire when no crucible data is available, don't overwrite non-blank crucible data with blank crucible data
+		local badEquipped = false
 		if Amr.db.char.Artifacts[spec] then
 			local oldCrucible = Amr.db.char.Artifacts[spec].Crucible
 			if oldCrucible then
 				if #oldCrucible.Equipped > 0 and oldCrucible.Equipped[1] and not equipped[1] then
-					return
+					badEquipped = true
 				end
 			end
 		end
@@ -374,7 +375,11 @@
 		end		
 		
 		local crucible = dataz.Crucible		
-		crucible.Equipped = equipped
+		
+		if not badEquipped then
+			crucible.Equipped = equipped
+		end
+		
 		if preview then
 			local previewKey = {}
 			table.insert(previewKey, preview.ItemLink)