mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
attach bug fix
This commit is contained in:
parent
f158408747
commit
5b7dd037c1
1 changed files with 3 additions and 0 deletions
|
|
@ -764,6 +764,9 @@ ResponseCode Server_ProtocolHandler::cmdAttachCard(Command_AttachCard *cmd, Comm
|
|||
if (!targetzone->hasCoords())
|
||||
return RespContextError;
|
||||
targetCard = targetzone->getCard(cmd->getTargetCardId(), false);
|
||||
if (targetCard)
|
||||
if (targetCard->getParentCard())
|
||||
return RespContextError;
|
||||
}
|
||||
if (!startzone->hasCoords())
|
||||
return RespContextError;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue