Skip to content

Commit

Permalink
also auto respond to bnet during proving grounds
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Jul 5, 2024
1 parent 902a332 commit 36cf212
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions DBM-Challenges/MoP/PGWhiteTiger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ function mod:UNIT_DIED(args)
end
end

function mod:SCENARIO_UPDATE(newStep)
local diffID, currWave, maxWave, duration = C_Scenario.GetProvingGroundsInfo()
function mod:SCENARIO_UPDATE()
local diffID = C_Scenario.GetProvingGroundsInfo()--, currWave, maxWave, duration
if diffID > 0 then
if not started then
started = true
Expand All @@ -197,7 +197,8 @@ function mod:SCENARIO_UPDATE(newStep)
"SPELL_AURA_APPLIED_DOSE 144383",
"SPELL_CAST_SUCCESS 144084 144091 144088 144086 144087 145260 142838 145198",
"UNIT_DIED",
"CHAT_MSG_WHISPER"
"CHAT_MSG_WHISPER",
"CHAT_MSG_BN_WHISPER"
)
end
elseif started then
Expand All @@ -217,7 +218,7 @@ do
if DBM.Options.AutoRespond and started then
if status ~= "GM" then--Filter GMs
name = Ambiguate(name, "none")
local diffID, currWave, maxWave, duration = C_Scenario.GetProvingGroundsInfo()
local diffID, currWave = C_Scenario.GetProvingGroundsInfo()--, maxWave, duration
local message = L.ReplyWhisper:format(UnitName("player"), mode[diffID], currWave)
if msg == "status" then
SendChatMessage(message, "WHISPER", nil, name)
Expand All @@ -227,4 +228,12 @@ do
end
end
end
function mod:CHAT_MSG_BN_WHISPER(msg, ...)
if DBM.Options.AutoRespond and started then
local presenceId = select(12, ...)
local diffID, currWave = C_Scenario.GetProvingGroundsInfo()--, maxWave, duration
local message = L.ReplyWhisper:format(UnitName("player"), mode[diffID], currWave)
BNSendWhisper(presenceId, message)
end
end
end

0 comments on commit 36cf212

Please sign in to comment.