From 3520dd35800cec157818f6effcae4710d609ced9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SN9KF5O\\Strawberry" Date: Fri, 16 Dec 2022 03:18:57 +0000 Subject: [PATCH] Return to overworld if bot is not ready on startup to refresh pokeportal value. --- README.md | 2 ++ SysBot.Pokemon/SV/BotTrade/PokeTradeBotSV.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 5920b7a..1f34f3f 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ If all you want is to request Pokémon, please go there! This is a custom sysbot, the Scarlet/Violet functionality of this bot is not created or supported by the PKHeX developers, please do not pester them! [Read the official startup instructions](https://github.com/kwsch/SysBot.NET/wiki/Bot-Startup-Details) if you've never hosted a switch sysbot. +[Download the latest build of this bot here](https://berichan.github.io/GetNHSE?sv) + ## Support Discord: For support on setting up your own instance of this SysBot, feel free to join the discord! (This sysbot isn't supported by the PKHeX-Projects discord, please do not ask for help there or bother them with questions related to this bot.) diff --git a/SysBot.Pokemon/SV/BotTrade/PokeTradeBotSV.cs b/SysBot.Pokemon/SV/BotTrade/PokeTradeBotSV.cs index dcf8b0b..d79a0c4 100644 --- a/SysBot.Pokemon/SV/BotTrade/PokeTradeBotSV.cs +++ b/SysBot.Pokemon/SV/BotTrade/PokeTradeBotSV.cs @@ -66,6 +66,8 @@ public override async Task MainLoop(CancellationToken token) if (await IsKeyboardOpen(token).ConfigureAwait(false) && await IsConnected(token).ConfigureAwait(false)) await EstablishOverworldPokePortalMinimum(token, true).ConfigureAwait(false); + else + await ReturnToOverworld(token).ConfigureAwait(false); await RestartGameIfCantTrade(false, null, token).ConfigureAwait(false);