table_zone_logic now sets the PT of the cardItem to the cardInfos PT, which ensures consistency of this functionality when the card is added from a hidden zone.

Took 27 minutes


Took 43 seconds
This commit is contained in:
Lukas Brübach 2025-09-13 10:24:05 +02:00
parent 9ca5ee52e7
commit df27aec7a7

View file

@ -15,6 +15,9 @@ TableZoneLogic::TableZoneLogic(Player *_player,
void TableZoneLogic::addCardImpl(CardItem *card, int _x, int _y) void TableZoneLogic::addCardImpl(CardItem *card, int _x, int _y)
{ {
cards.append(card); cards.append(card);
if (!card->getFaceDown()) {
card->setPT(card->getCardInfo().getPowTough());
}
card->setGridPoint(QPoint(_x, _y)); card->setGridPoint(QPoint(_x, _y));
card->setVisible(true); card->setVisible(true);
} }