From 512787a2a70249b0a18cfa7fa7cbcd64d53a549f Mon Sep 17 00:00:00 2001 From: Gengar <80122551+bdawg1989@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:05:34 -0500 Subject: [PATCH] Handle mismatched seeds and refreshing map a little differently --- SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs b/SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs index b2ec72c..a52c058 100644 --- a/SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs +++ b/SysBot.Pokemon/SV/BotRaid/RotatingRaidBotSV.cs @@ -1631,6 +1631,7 @@ private async Task 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) { @@ -1655,6 +1656,7 @@ private async Task 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);