Skip to content

Commit 81fe49b

Browse files
committed
Fix again.
1 parent 4ecd710 commit 81fe49b

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

SerialPrograms/Source/PokemonBDSP/Programs/ShinyHunting/PokemonBDSP_ShinyHunt-Shaymin.cpp

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ bool ShinyHuntShaymin::start_encounter(SingleSwitchProgramEnvironment& env, ProC
8080
int ret = run_until<ProControllerContext>(
8181
env.console, context,
8282
[&](ProControllerContext& context){
83-
while (true){
84-
ssf_press_dpad(context, DPAD_UP, 0ms, 10s, 0ms);
85-
for (size_t c = 0; c < 10; c++){
86-
pbf_press_button(context, BUTTON_ZL, 200ms, 800ms);
87-
}
88-
// pbf_mash_button(context, BUTTON_ZL, 5 * TICKS_PER_SECOND);
83+
ssf_press_dpad(context, DPAD_UP, 0ms, 10s, 0ms);
84+
for (size_t c = 0; c < 10; c++){
85+
pbf_press_button(context, BUTTON_ZL, 200ms, 300ms);
86+
pbf_mash_button(context, BUTTON_B, 400ms);
8987
}
9088
},
9189
{
@@ -108,12 +106,10 @@ bool ShinyHuntShaymin::start_encounter(SingleSwitchProgramEnvironment& env, ProC
108106
int ret = run_until<ProControllerContext>(
109107
env.console, context,
110108
[&](ProControllerContext& context){
111-
while (true){
112-
ssf_press_dpad(context, DPAD_UP, 0ms, 10s, 0ms);
113-
for (size_t c = 0; c < 10; c++){
114-
pbf_press_button(context, BUTTON_ZL, 200ms, 800ms);
115-
}
116-
// pbf_mash_button(context, BUTTON_ZL, 5 * TICKS_PER_SECOND);
109+
ssf_press_dpad(context, DPAD_UP, 0ms, 10s, 0ms);
110+
for (size_t c = 0; c < 10; c++){
111+
pbf_press_button(context, BUTTON_ZL, 200ms, 400ms);
112+
pbf_mash_button(context, BUTTON_B, 400ms);
117113
}
118114
},
119115
{

0 commit comments

Comments
 (0)