Skip to content

Commit

Permalink
Handle mismatched seeds and refreshing map a little differently
Browse files Browse the repository at this point in the history
  • Loading branch information
bdawg1989 committed Aug 4, 2024
1 parent c38d5cf commit 512787a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ private async Task<int> PrepareForRaid(CancellationToken token)
await GoHome(Hub.Config, token).ConfigureAwait(false);
await AdvanceDaySV(token).ConfigureAwait(false);
await SaveGame(Hub.Config, token).ConfigureAwait(false);
await RecoverToOverworld(token).ConfigureAwait(false);
shouldRefreshMap = false;
if (!token.IsCancellationRequested)
{
Expand All @@ -1655,6 +1656,7 @@ private async Task<int> PrepareForRaid(CancellationToken token)
return 2;
}

await Task.Delay(4_000, token).ConfigureAwait(false);
Log("Injecting correct seed.");
await CloseGame(Hub.Config, token).ConfigureAwait(false);
await StartGameRaid(Hub.Config, token).ConfigureAwait(false);
Expand Down

0 comments on commit 512787a

Please sign in to comment.