Skip to content

Commit

Permalink
fix: wait more before autopass
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliboy50 committed Jun 6, 2022
1 parent bc10687 commit eccede1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velonimo.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ function (dojo, declare) {
this.addActionButton(DOM_ID_ACTION_BUTTON_PASS_TURN, _('Pass'), 'onPassTurn');
// check if player can play or auto-pass its turn
if (!this.currentPlayerCanPlayCards()) {
// click on "Pass" after either 3, 4, 5, 6 or 7 seconds
this.clickActionButtonAfterAFewSeconds(DOM_ID_ACTION_BUTTON_PASS_TURN, Math.floor((Math.random() * 5) + 3));
// click on "Pass" after either 5, 6, 7, 8 or 9 seconds
this.clickActionButtonAfterAFewSeconds(DOM_ID_ACTION_BUTTON_PASS_TURN, Math.floor((Math.random() * 5) + 5));
} else {
this.setupPlayCardsActionButton();
}
Expand Down

0 comments on commit eccede1

Please sign in to comment.