mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 20:13:56 -07:00
[Game/DB] Have landscape cards enter tapped and not untap normally when played to table. (#6183)
Took 16 minutes Took 12 seconds Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
436d69b710
commit
1503394662
2 changed files with 6 additions and 3 deletions
|
|
@ -18,6 +18,9 @@ void TableZoneLogic::addCardImpl(CardItem *card, int _x, int _y)
|
||||||
if (!card->getFaceDown() && card->getPT().isEmpty()) {
|
if (!card->getFaceDown() && card->getPT().isEmpty()) {
|
||||||
card->setPT(card->getCardInfo().getPowTough());
|
card->setPT(card->getCardInfo().getPowTough());
|
||||||
}
|
}
|
||||||
|
if (card->getCardInfo().getCipt() && card->getCardInfo().getLandscapeOrientation()) {
|
||||||
|
card->setDoesntUntap(true);
|
||||||
|
}
|
||||||
card->setGridPoint(QPoint(_x, _y));
|
card->setGridPoint(QPoint(_x, _y));
|
||||||
card->setVisible(true);
|
card->setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -173,13 +173,13 @@ CardInfoPtr OracleImporter::addCard(QString name,
|
||||||
|
|
||||||
// DETECT CARD POSITIONING INFO
|
// DETECT CARD POSITIONING INFO
|
||||||
|
|
||||||
// cards that enter the field tapped
|
|
||||||
bool cipt = parseCipt(name, text);
|
|
||||||
|
|
||||||
bool landscapeOrientation = properties.value("maintype").toString() == "Battle" ||
|
bool landscapeOrientation = properties.value("maintype").toString() == "Battle" ||
|
||||||
properties.value("layout").toString() == "split" ||
|
properties.value("layout").toString() == "split" ||
|
||||||
properties.value("layout").toString() == "planar";
|
properties.value("layout").toString() == "planar";
|
||||||
|
|
||||||
|
// cards that enter the field tapped
|
||||||
|
bool cipt = parseCipt(name, text) || landscapeOrientation;
|
||||||
|
|
||||||
// table row
|
// table row
|
||||||
int tableRow = 1;
|
int tableRow = 1;
|
||||||
QString mainCardType = properties.value("maintype").toString();
|
QString mainCardType = properties.value("maintype").toString();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue