mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 23:00:24 -08:00
attach bug fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user