mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -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
|
|
@ -660,7 +660,12 @@ void CardDatabase::refreshCachedReverseRelatedCards()
|
|||
if(card->getReverseRelatedCards().isEmpty())
|
||||
continue;
|
||||
|
||||
QString relatedCardName = card->getName();
|
||||
QString relatedCardName;
|
||||
if (card->getPowTough().size() > 0)
|
||||
relatedCardName = card->getPowTough() + " " + card->getName(); // "n/n name"
|
||||
else
|
||||
relatedCardName = card->getName(); // "name"
|
||||
|
||||
foreach(QString targetCard, card->getReverseRelatedCards())
|
||||
{
|
||||
if (!cards.contains(targetCard))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue