mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
check card zone before applying action
This commit is contained in:
parent
ee8164efa8
commit
aa46a74790
1 changed files with 2 additions and 2 deletions
|
|
@ -3488,7 +3488,7 @@ void Player::actPlay()
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto &card : selectedCards) {
|
for (auto &card : selectedCards) {
|
||||||
if (card) {
|
if (card && !isUnwritableRevealZone(card->getZone())) {
|
||||||
const bool cipt = card->getInfo() ? card->getInfo()->getCipt() : false;
|
const bool cipt = card->getInfo() ? card->getInfo()->getCipt() : false;
|
||||||
playCard(card, false, cipt);
|
playCard(card, false, cipt);
|
||||||
}
|
}
|
||||||
|
|
@ -3514,7 +3514,7 @@ void Player::actPlayFacedown()
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto &card : selectedCards) {
|
for (auto &card : selectedCards) {
|
||||||
if (card) {
|
if (card && !isUnwritableRevealZone(card->getZone())) {
|
||||||
playCard(card, true, false);
|
playCard(card, true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue