chore:fixing cli build due to missing variable in build phase 5 and the headless_runner not doing setup/tagging automatically

This commit is contained in:
matt 2025-09-05 12:46:49 -07:00
parent 9eafe49393
commit 668f1a7185
2 changed files with 41 additions and 3 deletions

View file

@ -45,12 +45,13 @@ class ColorBalanceMixin:
Uses the color source matrix to aggregate counts for each color.
"""
matrix = self._compute_color_source_matrix()
counts = {c:0 for c in ['W','U','B','R','G']}
# Track only WUBRG here; ignore colorless 'C' and any other markers for this computation.
counts = {c: 0 for c in ['W', 'U', 'B', 'R', 'G']}
for name, colors in matrix.items():
entry = self.card_library.get(name, {})
copies = entry.get('Count',1)
copies = entry.get('Count', 1)
for c, v in colors.items():
if v:
if v and c in counts:
counts[c] += copies
return counts