mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 14:53:53 -07:00
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;
|
return;
|
||||||
|
|
||||||
lastTokenName = dlg.getName();
|
lastTokenName = dlg.getName();
|
||||||
|
if (CardInfo *correctedCard = db->getCardBySimpleName(lastTokenName, false)) {
|
||||||
|
lastTokenName = correctedCard->getName();
|
||||||
|
}
|
||||||
|
|
||||||
lastTokenColor = dlg.getColor();
|
lastTokenColor = dlg.getColor();
|
||||||
lastTokenPT = dlg.getPT();
|
lastTokenPT = dlg.getPT();
|
||||||
lastTokenAnnotation = dlg.getAnnotation();
|
lastTokenAnnotation = dlg.getAnnotation();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue