From 58a2b7ff3927e4e4b30d27ec0acf8372816c1ebe Mon Sep 17 00:00:00 2001 From: RickyRister <42636155+RickyRister@users.noreply.github.com> Date: Sat, 1 Mar 2025 04:32:07 -0800 Subject: [PATCH] Fix move to top of library shuffling an extra card (#5672) * Fix move to top of library shuffling an extra card * Update cockatrice/src/game/player/player.cpp --------- Co-authored-by: ebbit1q --- cockatrice/src/game/player/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/game/player/player.cpp b/cockatrice/src/game/player/player.cpp index afc20ad7f..230f12ad7 100644 --- a/cockatrice/src/game/player/player.cpp +++ b/cockatrice/src/game/player/player.cpp @@ -3186,7 +3186,7 @@ void Player::cardMenuAction() auto *scmd = new Command_Shuffle; scmd->set_zone_name("deck"); scmd->set_start(0); - scmd->set_end(idList.card_size()); + scmd->set_end(idList.card_size() - 1); // inclusive, the indexed card at end will be shuffled // Server process events backwards, so... commandList.append(scmd); }