update card menu immediately on card counter event (#4686)

fixes #4658
This commit is contained in:
ebbit1q 2022-10-17 22:37:32 +02:00 committed by GitHub
parent a7232513a7
commit 527ac36129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1972,6 +1972,7 @@ void Player::eventSetCardCounter(const Event_SetCardCounter &event)
int oldValue = card->getCounters().value(event.counter_id(), 0); int oldValue = card->getCounters().value(event.counter_id(), 0);
card->setCounter(event.counter_id(), event.counter_value()); card->setCounter(event.counter_id(), event.counter_value());
updateCardMenu(card);
emit logSetCardCounter(this, card->getName(), event.counter_id(), event.counter_value(), oldValue); emit logSetCardCounter(this, card->getName(), event.counter_id(), event.counter_value(), oldValue);
} }