Commit 9689b8e5 authored by Matt Lowe's avatar Matt Lowe
Browse files

Fixed token PT issue for #931

The problem was that back when I added #336 I made it so that if YOU
didnt recive the PT of the token, then it would be fetched from your
tokens.xml, the issue is that we needed to send that value to the
server. The server sees it as a 0/0

This fix will send the PT from the tokens.xml if available.
parent db23d3c9
...@@ -990,14 +990,14 @@ void Player::actCreateToken() ...@@ -990,14 +990,14 @@ void Player::actCreateToken()
DlgCreateToken dlg(predefinedTokens); DlgCreateToken dlg(predefinedTokens);
if (!dlg.exec()) if (!dlg.exec())
return; return;
lastTokenName = dlg.getName(); lastTokenName = dlg.getName();
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();
} }
lastTokenColor = dlg.getColor(); lastTokenColor = dlg.getColor();
lastTokenPT = dlg.getPT();
lastTokenAnnotation = dlg.getAnnotation(); lastTokenAnnotation = dlg.getAnnotation();
lastTokenDestroy = dlg.getDestroy(); lastTokenDestroy = dlg.getDestroy();
aCreateAnotherToken->setEnabled(true); aCreateAnotherToken->setEnabled(true);
......
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