mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-07 05:53:59 -07:00
Check using zone names instead
This commit is contained in:
parent
1dee795553
commit
d9a7b5c796
1 changed files with 3 additions and 2 deletions
|
|
@ -218,8 +218,9 @@ shouldBeFaceDown(const MoveCardStruct &cardStruct, const Server_CardZone *startZ
|
|||
return cardStruct.cardToMove->face_down();
|
||||
}
|
||||
|
||||
// default to keep face-down the same if zone didn't change
|
||||
if (startZone == targetZone) {
|
||||
// Default to keep face-down the same if zone didn't change.
|
||||
// Compare using zone names because face-down is maintained when changing controllers.
|
||||
if (startZone && startZone->getName() == targetZone->getName()) {
|
||||
return cardStruct.card->getFaceDown();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue