This commit is contained in:
2026-03-19 16:16:51 +01:00
parent 2d7fd0356b
commit cea827815e
2 changed files with 1 additions and 30 deletions

View File

@@ -68,7 +68,7 @@ class PlayerState:
"""True if the player has any playable cards left in deck or hand or on board."""
board_empty = all([c is None for c in self.board])
non_played_cards = self.deck + self.hand
return (not board_empty) or any(c.cost <= MAX_ENERGY_CAP for c in non_played_cards)
return (not board_empty) or any(c.cost <= max(MAX_ENERGY_CAP,self.energy) for c in non_played_cards)
@dataclass
class CombatEvent: