From aa46a7479046b71ed6f29191f7a3650bc1d685b4 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 8 Dec 2024 03:51:36 -0800 Subject: [PATCH] check card zone before applying action --- cockatrice/src/game/player/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/game/player/player.cpp b/cockatrice/src/game/player/player.cpp index ef7b72465..4f2759576 100644 --- a/cockatrice/src/game/player/player.cpp +++ b/cockatrice/src/game/player/player.cpp @@ -3488,7 +3488,7 @@ void Player::actPlay() } for (auto &card : selectedCards) { - if (card) { + if (card && !isUnwritableRevealZone(card->getZone())) { const bool cipt = card->getInfo() ? card->getInfo()->getCipt() : false; playCard(card, false, cipt); } @@ -3514,7 +3514,7 @@ void Player::actPlayFacedown() } for (auto &card : selectedCards) { - if (card) { + if (card && !isUnwritableRevealZone(card->getZone())) { playCard(card, true, false); } }