mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-22 01:18:57 -08: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user