Update app.js

master
Andy Smy 2025-04-21 22:50:02 +01:00 committed by GitHub
parent 1cc2ac6eef
commit 52ae439c51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -203,7 +203,11 @@ function incrementWickets(inc) {
Bangle.buzz();
wickets += inc;
var timeSig = new Date();
addLog(timeSig, over, counter, "Wicket", wickets);
if(inc>0) {
addLog(timeSig, over, counter, "Wicket", "Wickets: " + wickets);
} else {
addLog(timeSig, over, counter, "Recall Batter", "Wickets: " + wickets);
}
resumeGame();
} else {
E.showPrompt();