Skip to content

Commit 5c0164f

Browse files
committed
Fix OpenLobby mode by removing premature _emptyRaid reset
The counter was being reset when posting the FFA embed, before anyone joined. This broke OpenLobby mode - if the FFA raid was empty, users had to cycle through the entire empty limit again. Counter should only reset when trainers actually join (already handled in ReadTrainers).
1 parent 7d70f48 commit 5c0164f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,9 +3005,6 @@ private async Task EnqueueEmbed(List<string>? names, string message, bool hatTri
30053005
if (description.Length > 4096)
30063006
description = description[..4096];
30073007

3008-
if (_emptyRaid == _settings.LobbyOptions.EmptyRaidLimit && _settings.LobbyOptions.LobbyMethod == LobbyMethodOptions.OpenLobby)
3009-
_emptyRaid = 0;
3010-
30113008
if (disband) // Wait for trainer to load before disband
30123009
await Task.Delay(5_000, token).ConfigureAwait(false);
30133010

0 commit comments

Comments
 (0)