File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def patched_input(*args, **kwargs):
68
68
69
69
# Handle combat
70
70
if mygame .current_encounter :
71
- possible_cards = [idx + 1 for idx ,card in enumerate (player .hand ) if card .energy_cost <= player .energy and card .type != CardType . STATUS ]
71
+ possible_cards = [idx + 1 for idx ,card in enumerate (player .hand ) if card .energy_cost <= player .energy and card .playable ]
72
72
# Handle no energy
73
73
if player .energy == 0 and player .in_combat :
74
74
choice , reason = 'e' , "No energy left"
@@ -78,6 +78,8 @@ def patched_input(*args, **kwargs):
78
78
# Handle card selection
79
79
elif len (possible_cards ) > 0 :
80
80
choice , reason = str (random .choice (possible_cards )), "Card selection"
81
+ elif len (possible_cards ) == 0 :
82
+ choice , reason = 'e' , "No cards to play"
81
83
82
84
# Default (all options)
83
85
if choice is None :
You can’t perform that action at this time.
0 commit comments