From 0c2070b1a53d8c8688c8a6ebadcec7f5dfde4a99 Mon Sep 17 00:00:00 2001 From: Slivo Date: Thu, 27 May 2021 11:18:59 +0200 Subject: [PATCH 1/4] Use GUID instead of name for syncs to solve connected relms sync issue --- src/comms.lua | 2 +- src/rotation.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comms.lua b/src/comms.lua index a311db3..c08b54a 100644 --- a/src/comms.lua +++ b/src/comms.lua @@ -69,7 +69,7 @@ function TranqRotate:sendSyncTranq(hunter, fail, timestamp, failEvent) local message = { ['type'] = TranqRotate.constants.commsTypes.tranqshotDone, ['timestamp'] = timestamp, - ['player'] = hunter.name, + ['player'] = hunter.GUID, ['fail'] = fail, ['failEvent'] = failEvent, } diff --git a/src/rotation.lua b/src/rotation.lua index 37e7972..8d9d2c5 100644 --- a/src/rotation.lua +++ b/src/rotation.lua @@ -430,7 +430,7 @@ function TranqRotate:getSimpleRotationTables() for key, rotationTable in pairs(TranqRotate.rotationTables) do for _, hunter in pairs(rotationTable) do - table.insert(simpleTables[key], hunter.name) + table.insert(simpleTables[key], hunter.GUID) end end From 204003c033799a452bd8f479f9807580c8b7cff7 Mon Sep 17 00:00:00 2001 From: Slivo Date: Thu, 27 May 2021 12:08:48 +0200 Subject: [PATCH 2/4] whisperBackup small refactor --- src/rotation.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rotation.lua b/src/rotation.lua index 8d9d2c5..52907fd 100644 --- a/src/rotation.lua +++ b/src/rotation.lua @@ -495,14 +495,12 @@ end -- Whisper provided message of fail message to all backup except player function TranqRotate:whisperBackup(message, noComms) - local name = UnitName("player") - if (message == nil) then message = TranqRotate.db.profile.whisperFailMessage end for key, backupHunter in pairs(TranqRotate.rotationTables.backup) do - if (backupHunter.name ~= name) then + if (backupHunter.name ~= UnitName("player")) then SendChatMessage(message, 'WHISPER', nil, backupHunter.name) if (noComms ~= true) then From c229c29df3571d81eb90e1bab5817e0b09be7b69 Mon Sep 17 00:00:00 2001 From: Slivo Date: Sat, 29 May 2021 10:09:06 +0200 Subject: [PATCH 3/4] 2.0.0 changelog --- changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index adf728e..1ca0a8b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ ## TranqRotate Changelog +#### v2.0.0 + +- Fix connected realms sync issues - **BREAKING CHANGES** + #### v1.8.0 - Adds different announces messages for boss and trash (Boss announces can call next player, trash announces can call target) From 3a8d3d40a6192443aeb2b3e877ddb9754000bc86 Mon Sep 17 00:00:00 2001 From: Slivo Date: Sat, 29 May 2021 10:14:43 +0200 Subject: [PATCH 4/4] Update version in toc file --- TranqRotate.toc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TranqRotate.toc b/TranqRotate.toc index a48dabf..fada350 100644 --- a/TranqRotate.toc +++ b/TranqRotate.toc @@ -1,8 +1,8 @@ ## Interface: 11307 -## Title: TranqRotate |cff00aa001.8.0|r +## Title: TranqRotate |cff00aa002.0.0|r ## Notes: A tranqshot rotation assistant ## Author: Slivo -## Version: 1.8.0 +## Version: 2.0.0 ## SavedVariables: TranqRotateDb ## OptionalDeps: Ace3