Double fatigue bug

This commit is contained in:
Cal Corum 2023-10-24 23:44:55 -05:00
parent cce9b8e1c5
commit f0cd9b814f

View File

@ -976,12 +976,13 @@ class CardColumn(pydantic.BaseModel):
def add_fatigue(self, num_chances: int, k_only: bool = False):
def is_valid_result(this_result: CardResult):
if k_only:
if this_result.result_one == 'strikeout':
if this_result.result_one == 'strikeout' and '' not in this_result.result_one:
return True
else:
return False
else:
if this_result.result_two is None and not this_result.bold_one and 'X' not in this_result.result_one:
if this_result.result_two is None and not this_result.bold_one and 'X' not in this_result.result_one \
and '' not in this_result.result_one:
return True
return False