fix bug: count bdrs if bombed
This commit is contained in:
parent
afad8ca4fa
commit
7364789f11
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 = ''
|
termination = ''
|
||||||
game = HanabLiveGameState(instance)
|
game = HanabLiveGameState(instance)
|
||||||
for action in actions:
|
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]
|
discard = instance.deck[action.target]
|
||||||
if not game.is_trash(discard):
|
if not game.is_trash(discard):
|
||||||
if game.is_critical(discard):
|
if game.is_critical(discard):
|
||||||
|
|
Loading…
Reference in a new issue