Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v2.0.0 #54

Merged
merged 4 commits into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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