diff --git a/handlers/EventHandler.cs b/handlers/EventHandler.cs index d6217fe..aa9b3a1 100644 --- a/handlers/EventHandler.cs +++ b/handlers/EventHandler.cs @@ -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]