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…
Reference in a new issue