changeset 169:d90a740a1d0b v79

Bug fix, russian translation tweak.
author yellowfive
date Tue, 23 Jul 2019 14:48:31 -0700
parents 0d037afc7128
children 5f3af9ba8b96
files AskMrRobot-Serializer/AskMrRobot-Serializer.lua AskMrRobot.toc Gear.lua localization/ruRU.lua
diffstat 4 files changed, 19 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/AskMrRobot-Serializer/AskMrRobot-Serializer.lua	Wed Jul 10 12:53:50 2019 -0700
+++ b/AskMrRobot-Serializer/AskMrRobot-Serializer.lua	Tue Jul 23 14:48:31 2019 -0700
@@ -1,6 +1,6 @@
 -- AskMrRobot-Serializer will serialize and communicate character data between users.
 
-local MAJOR, MINOR = "AskMrRobot-Serializer", 78
+local MAJOR, MINOR = "AskMrRobot-Serializer", 79
 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
 
 if not Amr then return end -- already loaded by something else
--- a/AskMrRobot.toc	Wed Jul 10 12:53:50 2019 -0700
+++ b/AskMrRobot.toc	Tue Jul 23 14:48:31 2019 -0700
@@ -1,7 +1,7 @@
 ## Interface: 80200
 ## Title: Ask Mr. Robot
 ## Author: Team Robot, Inc.
-## Version: 78
+## Version: 79
 ## Notes: Gear import/export, combat logging, and more.
 ## URL: www.askmrrobot.com
 ## SavedVariables: AskMrRobotDb4
--- a/Gear.lua	Wed Jul 10 12:53:50 2019 -0700
+++ b/Gear.lua	Tue Jul 23 14:48:31 2019 -0700
@@ -1172,18 +1172,23 @@
 				table.insert(_pendingGearOps, { items = itemsToEquip.others, wait = true, label = "equip others" }) 
 			end
 
-			-- make the last operation wait no matter what, before this gets called again to check if everything succeeded
-			_pendingGearOps[#_pendingGearOps].wait = true
+			if #_pendingGearOps > 0 then			
+				-- make the last operation wait no matter what, before this gets called again to check if everything succeeded
+				_pendingGearOps[#_pendingGearOps].wait = true
 
-			if not _gearOpWaiting then
-				_gearOpWaiting = { inventory = {} }
+				if not _gearOpWaiting then
+					_gearOpWaiting = { inventory = {} }
+				end
+
+				_gearOpPasses = passes
+				_currentGearOp = _pendingGearOps[1]
+				initializeGearOp(_currentGearOp, setupId, 1)
+
+				processCurrentGearOp()
+			else
+				-- TODO: print message that gear set couldn't be equipped
 			end
-
-			_gearOpPasses = passes
-			_currentGearOp = _pendingGearOps[1]
-			initializeGearOp(_currentGearOp, setupId, 1)
-
-			processCurrentGearOp()
+			
 		else
 			-- TODO: print message that gear set couldn't be equipped
 		end
--- a/localization/ruRU.lua	Wed Jul 10 12:53:50 2019 -0700
+++ b/localization/ruRU.lua	Tue Jul 23 14:48:31 2019 -0700
@@ -80,8 +80,8 @@
 L.DifficultyNames = {
 	[17] = "ЛФР",
 	[14] = "Нормал",
-	[15] = "Героический",
-	[16] = "Мифический"
+	[15] = "Гер",
+	[16] = "Миф"
 }
 
 L.WeaponTypes = {