mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
Check if card has no PT set yet if dropped on table.
Took 22 minutes
This commit is contained in:
parent
ab6b32b8ba
commit
02ef189607
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ 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()) {
|
if (!card->getFaceDown() && card->getPT() == "") {
|
||||||
card->setPT(card->getCardInfo().getPowTough());
|
card->setPT(card->getCardInfo().getPowTough());
|
||||||
}
|
}
|
||||||
card->setGridPoint(QPoint(_x, _y));
|
card->setGridPoint(QPoint(_x, _y));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue