Skip to content

Commit fefa804

Browse files
committed
Flying after a day change will fail if we're outside.
1 parent b2f36b0 commit fefa804

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SerialPrograms/Source/PokemonLZA/Programs/ShinyHunting/PokemonLZA_WildZoneEntrance.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,13 @@ void enter_wild_zone_entrance(
131131
context.wait_for(std::chrono::milliseconds(2000));
132132
pbf_mash_button(context, BUTTON_B, 200ms); // dismiss menu if any
133133
open_map(env.console, context);
134+
fly_from_map(env.console, context);
135+
}else{
136+
if (!fly_from_map(env.console, context)){
137+
stats.errors++;
138+
}
134139
}
135140

136-
if (!fly_from_map(env.console, context)){
137-
stats.errors++;
138-
}
139141
}
140142

141143
void ShinyHunt_WildZoneEntrance::program(SingleSwitchProgramEnvironment& env, ProControllerContext& context){

0 commit comments

Comments
 (0)