mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
Hide 'increase tax' play actions on multi-card selection
This commit is contained in:
parent
f0f255f4d6
commit
68a5953c4f
2 changed files with 7 additions and 2 deletions
|
|
@ -166,11 +166,15 @@ CardMenu::CardMenu(PlayerGraphicsItem *_player, const CardItem *_card, bool _sho
|
|||
if (writeableCard) {
|
||||
addAction(aPlay);
|
||||
|
||||
if (player->getTaxCounterIfActive(CounterIds::CommanderTax)) {
|
||||
// Only offer for single selection: a multi-select would over-count casts by
|
||||
// bumping one commander's tax counter once per command-zone card.
|
||||
const bool singleSelection = gameScene->selectedCards().size() <= 1;
|
||||
|
||||
if (singleSelection && player->getTaxCounterIfActive(CounterIds::CommanderTax)) {
|
||||
addAction(aPlayAndIncreaseTax);
|
||||
}
|
||||
|
||||
if (player->getTaxCounterIfActive(CounterIds::PartnerTax)) {
|
||||
if (singleSelection && player->getTaxCounterIfActive(CounterIds::PartnerTax)) {
|
||||
addAction(aPlayAndIncreasePartnerTax);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue