Skip to content

Commit

Permalink
Merge pull request #54 from Slivo-fr/release/v2.0.0
Browse files Browse the repository at this point in the history
Release/v2.0.0
  • Loading branch information
Slivo-fr authored May 31, 2021
2 parents 21fbecc + 3a8d3d4 commit c96e245
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions TranqRotate.toc
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/comms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
6 changes: 2 additions & 4 deletions src/rotation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c96e245

Please sign in to comment.