Add distinct random hand reveals with private recipient delivery

This commit is contained in:
Bryce! 2026-11-01 21:59:21 -05:00
parent e08402ac94
commit ccdee18db2
14 changed files with 418 additions and 8 deletions

View file

@ -1756,6 +1756,17 @@ void PlayerActions::actRevealRandomHandCard(int revealToPlayerId)
sendGameCommand(cmd);
}
PendingCommand *PlayerActions::prepareRandomHandReveal(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);
return prepareGameCommand(cmd);
}
void PlayerActions::actRevealLibrary(int revealToPlayerId)
{
Command_RevealCards cmd;

View file

@ -83,6 +83,7 @@ public:
* @param numberCards How many cards to dump, -1 for all.
*/
PendingCommand *prepareZoneDump(CardZoneLogic *zone, int numberCards);
PendingCommand *prepareRandomHandReveal(int revealToPlayerId, int amount);
/**
* @brief Sets the tapped state of the cards that do not already have it.