Skip to content

Commit

Permalink
players who are dead after the meeting will unmute
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxinal committed Nov 2, 2020
1 parent 99db802 commit c98c388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions handlers/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ public async void OnMeetingStarted(IMeetingStartedEvent e)
[EventListener]
public async void OnMeetingEnded(IMeetingEndedEvent e)
{
foreach (var player in e.Game.Players)
{
if(player.Character.PlayerInfo.IsDead){
Bot.games[e.Game.Code.Code].players[player.Character.PlayerInfo.ColorId].isDead = true;
}
}
await Bot.Tasks(e.Game.Code.Code, 10);
}
[EventListener]
Expand Down

0 comments on commit c98c388

Please sign in to comment.