allow placement below top X cards (#2666)

Close #2666
This commit is contained in:
Zach H
2017-04-27 20:32:24 -04:00
committed by Gavin Bisesi
parent 7c1a18da5e
commit 12c9e4b81a
4 changed files with 56 additions and 4 deletions

View File

@@ -341,7 +341,7 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, Server_Car
if (((targetzone->getType() != ServerInfo_Zone::PublicZone) || !targetzone->hasCoords()) && (startzone->getPlayer() != targetzone->getPlayer()))
return Response::RespContextError;
if (!targetzone->hasCoords() && (x == -1))
if (!targetzone->hasCoords() && (x <= -1))
x = targetzone->getCards().size();
QList<QPair<Server_Card *, int> > cardsToMove;