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. (#6129)

Took 27 minutes


Took 43 seconds

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL
2025-09-13 13:37:04 +02:00
committed by GitHub
parent 87b0259b97
commit 41ea424359

View File

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