mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 11:58:53 -05:00
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 <ebbit1q@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user