Skip to content

Commit 9e94338

Browse files
committed
Fix overworld bot unexpected battle recovery.
1 parent 065ecf5 commit 9e94338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SerialPrograms/Source/PokemonSwSh/Programs/OverworldBot/PokemonSwSh_ShinyHuntAutonomous-Overworld.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ bool ShinyHuntAutonomousOverworld::find_encounter(
246246
switch (result){
247247
case 0:
248248
stream.log("Unexpected Battle.", COLOR_RED);
249+
run_away(stream, context, EXIT_BATTLE_TIMEOUT0);
249250
return false;
250251
case 1:
251252
stream.log("Battle started!");

0 commit comments

Comments
 (0)