Restore the upstream reveal-random-hand-cards action

The rebase onto upstream/master took the PR side of player_actions.cpp and
dropped PlayerActions::actRevealRandomHandCards, which upstream added after
the PR merge base. Re-apply the face-down P/T fix on the current file so the
branch keeps both changes.
This commit is contained in:
Lukas Brübach 2026-11-09 09:53:51 +01:00
parent 72bd5e8af1
commit e62c250152

View file

@ -1756,6 +1756,17 @@ void PlayerActions::actRevealRandomHandCard(int revealToPlayerId)
sendGameCommand(cmd); sendGameCommand(cmd);
} }
void PlayerActions::actRevealRandomHandCards(int revealToPlayerId, int amount)
{
Command_RevealRandomCards cmd;
if (revealToPlayerId != -1) {
cmd.set_player_id(revealToPlayerId);
}
cmd.set_zone_name(ZoneNames::HAND);
cmd.set_number_of_cards(amount);
sendGameCommand(cmd);
}
void PlayerActions::actRevealLibrary(int revealToPlayerId) void PlayerActions::actRevealLibrary(int revealToPlayerId)
{ {
Command_RevealCards cmd; Command_RevealCards cmd;