Only use local db if no pt is provided
Addresses issue #1032 If a token is created with no p/t then the local db value will be passed instead. If a value is provided then that will be used instead.
This commit is contained in:
parent
11da8d09bf
commit
6fd5c4dd27
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