mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
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:
parent
72bd5e8af1
commit
e62c250152
1 changed files with 11 additions and 0 deletions
|
|
@ -1756,6 +1756,17 @@ void PlayerActions::actRevealRandomHandCard(int revealToPlayerId)
|
|||
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)
|
||||
{
|
||||
Command_RevealCards cmd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue