mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-17 15:32:11 -08:00
Merge pull request #1033 from poixen/token_pt_fix
Only use local db if no pt is provided
This commit is contained in:
@@ -1003,7 +1003,8 @@ void Player::actCreateToken()
|
||||
lastTokenPT = dlg.getPT();
|
||||
if (CardInfo *correctedCard = db->getCardBySimpleName(lastTokenName, false)) {
|
||||
lastTokenName = correctedCard->getName();
|
||||
lastTokenPT = correctedCard->getPowTough();
|
||||
if (lastTokenPT.isEmpty())
|
||||
lastTokenPT = correctedCard->getPowTough();
|
||||
}
|
||||
lastTokenColor = dlg.getColor();
|
||||
lastTokenAnnotation = dlg.getAnnotation();
|
||||
|
||||
Reference in New Issue
Block a user