mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 19:43:26 -08:00
Add distinct random hand reveals with private recipient delivery
This commit is contained in:
parent
e08402ac94
commit
ccdee18db2
14 changed files with 418 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue