mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
don't play card if it's already on table
This commit is contained in:
parent
8170a428e1
commit
03b62c7fd3
1 changed files with 1 additions and 1 deletions
|
|
@ -3494,7 +3494,7 @@ void Player::playSelectedCards(const bool faceDown)
|
|||
[](const auto &card1, const auto &card2) { return card1->getId() > card2->getId(); });
|
||||
|
||||
for (auto &card : selectedCards) {
|
||||
if (card && !isUnwritableRevealZone(card->getZone())) {
|
||||
if (card && !isUnwritableRevealZone(card->getZone()) && card->getZone()->getName() != "table") {
|
||||
const bool cipt = !faceDown && card->getInfo() ? card->getInfo()->getCipt() : false;
|
||||
playCard(card, faceDown, cipt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue