Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
Revert "Minor: speed up battle move & catching waits slightly" - no l…
Browse files Browse the repository at this point in the history
…onger needed now that AWS local cache augmentation is shipping

This reverts commit cf2b7b4.
  • Loading branch information
tdmalone committed Jun 27, 2017
1 parent 88b3ee2 commit b362738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/battles.php
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ function slackemon_do_battle_move( $move_name, $battle_hash, $action, $first_mov
// If neither Pokemon hasn't fainted, go ahead and move!
if ( $user_pokemon->hp && $opponent_pokemon->hp ) {

sleep( 1 ); // Wait before the computer moves...
sleep( 2 ); // Wait before the computer moves...

// Before we move, should we flee?
// This doubles the chance of staying compared to a standard catch, plus increases more depending on
Expand Down
4 changes: 2 additions & 2 deletions src/catching.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function slackemon_get_catch_message( $spawn_ts, $action, $from_battle = false,
if ( 'catch' === $force_battle_result ) {
// Don't wait here - it's obvious from a battle ending that this is going to be a catch
} else {
sleep( 3 );
sleep( 5 );
}

}
Expand Down Expand Up @@ -446,7 +446,7 @@ function slackemon_start_catch_battle( $spawn_ts, $action, $user_id = USER_ID )
], RESPONSE_URL );

// Wild Pokemon gets to move first
sleep( 2 ); // Wait before the computer moves...
sleep( 4 ); // Wait before the computer moves...
$move = slackemon_get_best_move( $invitee_pokemon, $inviter_pokemon );
slackemon_do_battle_move( $move->name, $battle_hash, $action, true, $invitee_id );

Expand Down

0 comments on commit b362738

Please sign in to comment.