fix bug: count bdrs if bombed
This commit is contained in:
parent
5ce58b375d
commit
d485488d1e
1 changed files with 1 additions and 1 deletions
2
bdr.py
2
bdr.py
|
@ -9,7 +9,7 @@ def analyze_game(instance: HanabLiveInstance, actions: List[Action]) -> Tuple[Li
|
|||
termination = ''
|
||||
game = HanabLiveGameState(instance)
|
||||
for action in actions:
|
||||
if action.type == ActionType.Discard:
|
||||
if action.type == ActionType.Discard or (action.type == ActionType.Play and not game.is_playable(instance.deck[action.target])):
|
||||
discard = instance.deck[action.target]
|
||||
if not game.is_trash(discard):
|
||||
if game.is_critical(discard):
|
||||
|
|
Loading…
Reference in a new issue