Merge pull request #251 from arxanas/case-insensitive-tokens
Fix #248: the token dialog generates cards irrespective of their case and punctuation
This commit is contained in:
commit
8d482245ff
1 changed files with 4 additions and 0 deletions
|
@ -959,6 +959,10 @@ void Player::actCreateToken()
|
|||
return;
|
||||
|
||||
lastTokenName = dlg.getName();
|
||||
if (CardInfo *correctedCard = db->getCardBySimpleName(lastTokenName, false)) {
|
||||
lastTokenName = correctedCard->getName();
|
||||
}
|
||||
|
||||
lastTokenColor = dlg.getColor();
|
||||
lastTokenPT = dlg.getPT();
|
||||
lastTokenAnnotation = dlg.getAnnotation();
|
||||
|
|
Loading…
Reference in a new issue