Commit 1ca561de authored by Zach's avatar Zach
Browse files

Merge pull request #1033 from poixen/token_pt_fix

Only use local db if no pt is provided
parents c5ac3701 6fd5c4dd
...@@ -1003,7 +1003,8 @@ void Player::actCreateToken() ...@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment