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:
RickyRister
2025-02-16 14:02:45 -08:00
committed by GitHub
parent 01d5e58a5f
commit 5c8d1f3cff
3 changed files with 15 additions and 4 deletions

View File

@@ -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;
}