Skip to content

Commit 151faf6

Browse files
committed
Replace trying to move again by detection based method
1 parent 550d814 commit 151faf6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

SerialPrograms/Source/PokemonLZA/Programs/NonShinyHunting/PokemonLZA_StatsReset.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,7 @@ void StatsReset::program(SingleSwitchProgramEnvironment& env, ProControllerConte
555555
}
556556
context.wait_for(100ms);
557557
// run toward hoopa to catch
558-
ssf_press_button(context, BUTTON_B, 0ms, 2s, 0ms);
559-
pbf_move_left_joystick(context, {0.05, +1}, 1500ms, 0ms);
560-
pbf_mash_button(context, BUTTON_A, 1s);
561-
// incase did not run
562-
pbf_move_left_joystick(context, {0.05, +1}, 500ms, 0ms);
558+
run_towards_gate_with_A_button(env.console, context, 0.063, 1, 2s);
563559
pbf_mash_button(context, BUTTON_A, 1s);
564560
}
565561

0 commit comments

Comments
 (0)