mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07: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:
parent
01d5e58a5f
commit
5c8d1f3cff
3 changed files with 15 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue