diff Core.lua @ 143:55823e37403b v67

Updated pt-BR translation, bug fixes.
author yellowfive
date Thu, 08 Nov 2018 21:21:10 -0800
parents c229c759a125
children df1596b1a744
line wrap: on
line diff
--- a/Core.lua	Tue Nov 06 15:39:26 2018 -0800
+++ b/Core.lua	Thu Nov 08 21:21:10 2018 -0800
@@ -161,16 +161,19 @@
 
 	local currentVersion = tonumber(GetAddOnMetadata(Amr.ADDON_NAME, "Version"))
 	if Amr.db.char.LastVersion < 65 then
-		for i = 1,GetNumSpecializations() do
-			local _, specName = GetSpecializationInfo(i)
-			if specName then
-				print("AMR " .. specName)
-				local setid = C_EquipmentSet.GetEquipmentSetID("AMR " .. specName)
-				if setid then
-					C_EquipmentSet.DeleteEquipmentSet(setid)
+
+		if not Amr.db.profile.options.disableEm then
+			for i = 1,GetNumSpecializations() do
+				local _, specName = GetSpecializationInfo(i)
+				if specName then
+					local setid = C_EquipmentSet.GetEquipmentSetID("AMR " .. specName)
+					if setid then
+						C_EquipmentSet.DeleteEquipmentSet(setid)
+					end
 				end
 			end
 		end
+		
 	end
 	Amr.db.char.LastVersion = currentVersion