Skip to content

Commit

Permalink
Merge branch 'master' into spectator
Browse files Browse the repository at this point in the history
  • Loading branch information
denverquane committed Jan 4, 2021
2 parents 2897855 + fa01ca5 commit 62afddb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/eventHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ func (bot *Bot) processTransition(phase game.Phase, dgsRequest GameStateRequest)
metrics.RecordDiscordRequests(bot.RedisInterface.client, metrics.MessageEdit, 1)
}
bot.applyToAll(dgs, false, false)
// on a gameover event from the capture, it's like going to the lobby; use that delay
case game.GAMEOVER:
phase = game.LOBBY
fallthrough
case game.LOBBY:
delay := sett.Delays.GetDelay(oldPhase, phase)
bot.handleTrackedMembers(bot.PrimarySession, sett, delay, NoPriority, dgsRequest)
Expand Down

0 comments on commit 62afddb

Please sign in to comment.