Add colorless commander filtering and display fixes

This commit is contained in:
matt 2025-10-16 11:20:27 -07:00
parent 2eab6ab653
commit bec984ce3e
9 changed files with 211 additions and 18 deletions

View file

@ -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()}