mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
remove cards being looked at from the count on drawing (#4671)
This commit is contained in:
parent
90f187e885
commit
a7232513a7
2 changed files with 6 additions and 2 deletions
|
|
@ -337,7 +337,11 @@ Response::ResponseCode Server_Player::drawCards(GameEventStorage &ges, int numbe
|
|||
ges.enqueueGameEvent(eventPrivate, playerId, GameEventStorageItem::SendToPrivate, playerId);
|
||||
ges.enqueueGameEvent(eventOthers, playerId, GameEventStorageItem::SendToOthers);
|
||||
|
||||
revealTopCardIfNeeded(deckZone, ges);
|
||||
if (number > 0) {
|
||||
revealTopCardIfNeeded(deckZone, ges);
|
||||
int currentKnownCards = deckZone->getCardsBeingLookedAt();
|
||||
deckZone->setCardsBeingLookedAt(currentKnownCards - number);
|
||||
}
|
||||
|
||||
return Response::RespOk;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue