mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
fix bug with wonky play from deck
This commit is contained in:
parent
aa46a74790
commit
d3b2cd8261
1 changed files with 3 additions and 0 deletions
|
|
@ -3487,6 +3487,9 @@ void Player::actPlay()
|
|||
selectedCards.append(card);
|
||||
}
|
||||
|
||||
std::sort(selectedCards.begin(), selectedCards.end(),
|
||||
[](const auto &card1, const auto &card2) { return card1->getId() > card2->getId(); });
|
||||
|
||||
for (auto &card : selectedCards) {
|
||||
if (card && !isUnwritableRevealZone(card->getZone())) {
|
||||
const bool cipt = card->getInfo() ? card->getInfo()->getCipt() : false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue