🐐
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user