mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Code cleanup
- Add missing isCommandZoneCounterBlocked check to cmdSetCounterActive - Revert accidental deck view layout change from b4057a86 - Fix duplicate @param in playSelectedCardsImpl doc - Add null check for PlayerLogic in CommandZoneMenu constructor - Add index bounds check in CommandZone handleDropEvent - Add index bounds check in StackZone handleDropEvent - Add ownership comment for tax counter widget creation - Add command zone to zoneGraphicsItems map - Conditionally show command zone menu item based on server support - Remove layer-violating includes from player_logic.cpp - Fix tax counter increment (1 per cast, not 2) - Add getTaxCounterIfActive() helper to PlayerGraphicsItem
This commit is contained in:
parent
15c1d47a0b
commit
d662b679f7
12 changed files with 43 additions and 28 deletions
|
|
@ -166,13 +166,11 @@ CardMenu::CardMenu(PlayerGraphicsItem *_player, const CardItem *_card, bool _sho
|
|||
if (writeableCard) {
|
||||
addAction(aPlay);
|
||||
|
||||
AbstractCounter *cmdTax = player->getCounterWidget(CounterIds::CommanderTax);
|
||||
if (cmdTax && cmdTax->isActive()) {
|
||||
if (player->getTaxCounterIfActive(CounterIds::CommanderTax)) {
|
||||
addAction(aPlayAndIncreaseTax);
|
||||
}
|
||||
|
||||
AbstractCounter *partnerTax = player->getCounterWidget(CounterIds::PartnerTax);
|
||||
if (partnerTax && partnerTax->isActive()) {
|
||||
if (player->getTaxCounterIfActive(CounterIds::PartnerTax)) {
|
||||
addAction(aPlayAndIncreasePartnerTax);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue