mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 18:06:26 -07:00
Formatting.
This commit is contained in:
parent
c2926037fc
commit
766f02149b
8 changed files with 21 additions and 17 deletions
|
|
@ -1550,7 +1550,7 @@ Server_AbstractPlayer::cmdRevealCards(const Command_RevealCards &cmd, ResponseCo
|
|||
cardInfo->set_annotation(card->getAnnotation().toStdString());
|
||||
cardInfo->set_destroy_on_zone_change(card->getDestroyOnZoneChange());
|
||||
cardInfo->set_doesnt_untap(card->getDoesntUntap());
|
||||
cardInfo->set_doesnt_untap_once(card->getDoesntUntapOnce());
|
||||
cardInfo->set_doesnt_untap_once(card->getDoesntUntapOnce());
|
||||
|
||||
QMapIterator<int, int> cardCounterIterator(card->getCounters());
|
||||
while (cardCounterIterator.hasNext()) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
Server_Card::Server_Card(const CardRef &cardRef, int _id, int _coord_x, int _coord_y, Server_CardZone *_zone)
|
||||
: zone(_zone), id(_id), coord_x(_coord_x), coord_y(_coord_y), cardRef(cardRef), tapped(false), attacking(false),
|
||||
facedown(false), destroyOnZoneChange(false), doesntUntap(false), doesntUntapOnce(false), parentCard(0), stashedCard(nullptr)
|
||||
facedown(false), destroyOnZoneChange(false), doesntUntap(false), doesntUntapOnce(false), parentCard(0),
|
||||
stashedCard(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +69,7 @@ void Server_Card::resetState(bool keepAnnotations)
|
|||
QString Server_Card::setAttribute(CardAttribute attribute, const QString &avalue, bool allCards)
|
||||
{
|
||||
if (attribute == AttrTapped && avalue != "1" && allCards && doesntUntapOnce) {
|
||||
setDoesntUntapOnce(false);
|
||||
setDoesntUntapOnce(false);
|
||||
return QVariant(tapped).toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue