From 7364789f1186d3b620cc8534fb2b17643802d8ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 11 Nov 2023 03:47:38 +0100 Subject: [PATCH] fix bug: count bdrs if bombed --- bdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdr.py b/bdr.py index 0cafdad..8d57e0b 100644 --- a/bdr.py +++ b/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):