Merge pull request #1033 from poixen/token_pt_fix

Only use local db if no pt is provided
This commit is contained in:
Zach 2015-04-27 15:58:41 -04:00
commit 1ca561dec5

View file

@ -1003,7 +1003,8 @@ void Player::actCreateToken()
lastTokenPT = dlg.getPT(); lastTokenPT = dlg.getPT();
if (CardInfo *correctedCard = db->getCardBySimpleName(lastTokenName, false)) { if (CardInfo *correctedCard = db->getCardBySimpleName(lastTokenName, false)) {
lastTokenName = correctedCard->getName(); lastTokenName = correctedCard->getName();
lastTokenPT = correctedCard->getPowTough(); if (lastTokenPT.isEmpty())
lastTokenPT = correctedCard->getPowTough();
} }
lastTokenColor = dlg.getColor(); lastTokenColor = dlg.getColor();
lastTokenAnnotation = dlg.getAnnotation(); lastTokenAnnotation = dlg.getAnnotation();