Merge pull request #1216 from ZeldaZach/fix_morphs
Fix Morphs from Sharing Information
This commit is contained in:
commit
f199e20740
2 changed files with 6 additions and 3 deletions
|
@ -110,7 +110,7 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||
QStringList ptDbSplit = db->getCard(name)->getPowTough().split("/");
|
||||
QStringList ptSplit = pt.split("/");
|
||||
|
||||
if (ptDbSplit.at(0) != ptSplit.at(0) || ptDbSplit.at(1) != ptSplit.at(1))
|
||||
if (getFaceDown() || ptDbSplit.at(0) != ptSplit.at(0) || ptDbSplit.at(1) != ptSplit.at(1))
|
||||
painter->setPen(QColor(255, 150, 0));
|
||||
else
|
||||
painter->setPen(Qt::white);
|
||||
|
|
|
@ -126,14 +126,17 @@ void Server_Card::getInfo(ServerInfo_Card *info)
|
|||
info->set_name(displayedName.toStdString());
|
||||
info->set_x(coord_x);
|
||||
info->set_y(coord_y);
|
||||
QString ptStr = getPT();
|
||||
if (facedown)
|
||||
{
|
||||
info->set_face_down(true);
|
||||
ptStr = getPT();
|
||||
}
|
||||
info->set_tapped(tapped);
|
||||
if (attacking)
|
||||
info->set_attacking(true);
|
||||
if (!color.isEmpty())
|
||||
info->set_color(color.toStdString());
|
||||
const QString ptStr = getPT();
|
||||
if (!ptStr.isEmpty())
|
||||
info->set_pt(ptStr.toStdString());
|
||||
if (!annotation.isEmpty())
|
||||
|
@ -156,4 +159,4 @@ void Server_Card::getInfo(ServerInfo_Card *info)
|
|||
info->set_attach_zone(parentCard->getZone()->getName().toStdString());
|
||||
info->set_attach_card_id(parentCard->getId());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue