Skip to content

Commit

Permalink
fix: getting correct count in bs
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXTQ committed Nov 24, 2024
1 parent 04c8823 commit 77d12cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DiscordLab.BotStatus/Handlers/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void OnPlayerVerified(VerifiedEventArgs ev)

private void OnPlayerLeave(LeftEventArgs ev)
{
int players = Player.List.Count(p => p != ev.Player);
int players = Player.List.Count(p => p != ev.Player && !p.IsNPC);
if (Round.InProgress || players == 0)
DiscordBot.Instance.SetStatus(
players
Expand Down

0 comments on commit 77d12cd

Please sign in to comment.