mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-13 19:45:46 -05:00
[Game] Fix facedown predefined tokens leaking tablerow (#7000)
(cherry picked from commit 5ffe344779)
This commit is contained in:
@@ -874,7 +874,8 @@ void PlayerActions::actCreateToken()
|
||||
ExactCard correctedCard = CardDatabaseManager::query()->guessCard({lastTokenInfo.name, lastTokenInfo.providerId});
|
||||
if (correctedCard) {
|
||||
lastTokenInfo.name = correctedCard.getName();
|
||||
lastTokenTableRow = TableZone::tableRowToGridY(correctedCard.getInfo().getUiAttributes().tableRow);
|
||||
int tableRow = lastTokenInfo.faceDown ? 2 : correctedCard.getInfo().getUiAttributes().tableRow;
|
||||
lastTokenTableRow = TableZone::tableRowToGridY(tableRow);
|
||||
if (lastTokenInfo.pt.isEmpty()) {
|
||||
lastTokenInfo.pt = correctedCard.getInfo().getPowTough();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user