mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-24 10:23:02 -07:00
Appears to work.
This commit is contained in:
parent
de421cf406
commit
1380a8af99
1 changed files with 4 additions and 2 deletions
|
|
@ -199,13 +199,15 @@ void PlayerEventHandler::setCardAttrHelper(const GameEventContext &context,
|
||||||
switch (attribute) {
|
switch (attribute) {
|
||||||
case AttrTapped: {
|
case AttrTapped: {
|
||||||
bool tapped = avalue == "1";
|
bool tapped = avalue == "1";
|
||||||
if (!(!tapped && card->getDoesntUntap() && allCards)) {
|
if (!(!tapped && card->getDoesntUntap() && allCards) && !(!tapped && card->getDoesntUntapOnce() && allCards)) {
|
||||||
if (!allCards) {
|
if (!allCards) {
|
||||||
emit logSetTapped(player, card, tapped);
|
emit logSetTapped(player, card, tapped);
|
||||||
}
|
}
|
||||||
bool canAnimate = !options.testFlag(SKIP_TAP_ANIMATION) && !moveCardContext;
|
bool canAnimate = !options.testFlag(SKIP_TAP_ANIMATION) && !moveCardContext;
|
||||||
card->setTapped(tapped, canAnimate);
|
card->setTapped(tapped, canAnimate);
|
||||||
}
|
} else if (!tapped && card->getDoesntUntapOnce() && allCards) {
|
||||||
|
card->setDoesntUntapOnce(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AttrAttacking: {
|
case AttrAttacking: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue