mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
allow controller change even from a different zone
This commit is contained in:
parent
2013ba3460
commit
6b370ce16b
2 changed files with 3 additions and 3 deletions
|
|
@ -235,8 +235,8 @@ public:
|
|||
|
||||
ResponseCode Server_Player::moveCard(CommandContainer *cont, Server_CardZone *startzone, const QList<int> &_cardIds, Server_CardZone *targetzone, int x, int y, bool faceDown, bool tapped)
|
||||
{
|
||||
// Disallow controller change between different zones.
|
||||
if ((startzone->getName() != targetzone->getName()) && (startzone->getPlayer() != targetzone->getPlayer()))
|
||||
// Disallow controller change to other zones than the table.
|
||||
if (((targetzone->getType() != PublicZone) || !targetzone->hasCoords()) && (startzone->getPlayer() != targetzone->getPlayer()))
|
||||
return RespContextError;
|
||||
|
||||
if (!targetzone->hasCoords() && (x == -1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue