mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
small fixes
This commit is contained in:
parent
fb0fd14e29
commit
f826525d50
1 changed files with 3 additions and 2 deletions
|
|
@ -3434,12 +3434,13 @@ void Player::actCardCounterTrigger()
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief returns true if the zone is a unwritable reveal zone view (eg a card reveal window)
|
||||
* @brief returns true if the zone is a unwritable reveal zone view (eg a card reveal window). Will return false if zone
|
||||
* is nullptr.
|
||||
*/
|
||||
static bool isUnwritableRevealZone(CardZone *zone)
|
||||
{
|
||||
if (zone && zone->getIsView()) {
|
||||
auto *view = dynamic_cast<ZoneViewZone *>(zone);
|
||||
auto *view = static_cast<ZoneViewZone *>(zone);
|
||||
return view->getRevealZone() && !view->getWriteableRevealZone();
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue