mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Token PT shown in create related dialog
This commit is contained in:
parent
2bf998b7d3
commit
da0e3292d3
2 changed files with 14 additions and 2 deletions
|
|
@ -1135,7 +1135,14 @@ void Player::actCreateRelatedCard()
|
|||
|
||||
// get the target card name
|
||||
QAction *action = static_cast<QAction *>(sender());
|
||||
CardInfo *cardInfo = db->getCard(action->text());
|
||||
|
||||
// removes p/t from tokens (and leading space))
|
||||
QStringList spaces = action->text().split(" ");
|
||||
|
||||
if (spaces.at(0).indexOf("/") != -1) // Strip space from creatures
|
||||
spaces.removeFirst();
|
||||
|
||||
CardInfo *cardInfo = db->getCard(spaces.join(" "));
|
||||
|
||||
// create the token for the related card
|
||||
Command_CreateToken cmd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue