mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
Add colorless commander filtering and display fixes
This commit is contained in:
parent
2eab6ab653
commit
bec984ce3e
9 changed files with 211 additions and 18 deletions
|
|
@ -159,7 +159,8 @@ class ColorBalanceMixin:
|
|||
self.output_func(" (No viable swaps executed.)")
|
||||
|
||||
# Always consider basic-land rebalance when requested
|
||||
if rebalance_basics:
|
||||
# M5: Skip rebalance for colorless commanders (they should have only Wastes)
|
||||
if rebalance_basics and self.color_identity: # Only rebalance if commander has colors
|
||||
try:
|
||||
basic_map = getattr(bc, 'COLOR_TO_BASIC_LAND', {})
|
||||
basics_present = {nm: entry for nm, entry in self.card_library.items() if nm in basic_map.values()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue