mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-28 13:46:00 -08:00
Make AttachTo tokens work from non-table zones (#5629)
* move card to play before creating attached token * leave comment * hardcode createCard target zone to table To get attached token from graveyard/exile to work
This commit is contained in:
@@ -1358,6 +1358,9 @@ Server_Player::cmdAttachCard(const Command_AttachCard &cmd, ResponseContainer &
|
||||
return Response::RespNameNotFound;
|
||||
}
|
||||
}
|
||||
|
||||
// prevent attaching from non-table zones
|
||||
// (attaching from non-table zones is handled client-side by moving the card to table zone first)
|
||||
if (!startzone->hasCoords()) {
|
||||
return Response::RespContextError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user