Merge pull request #1033 from poixen/token_pt_fix
Only use local db if no pt is provided
This commit is contained in:
commit
1ca561dec5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue