Check if card has no PT set yet if dropped on table.

Took 22 minutes
This commit is contained in:
Lukas Brübach 2025-09-14 04:16:12 +02:00
parent ab6b32b8ba
commit 02ef189607

View file

@ -15,7 +15,7 @@ TableZoneLogic::TableZoneLogic(Player *_player,
void TableZoneLogic::addCardImpl(CardItem *card, int _x, int _y)
{
cards.append(card);
if (!card->getFaceDown()) {
if (!card->getFaceDown() && card->getPT() == "") {
card->setPT(card->getCardInfo().getPowTough());
}
card->setGridPoint(QPoint(_x, _y));