Skip to content

Commit

Permalink
fix: tourist inference
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Aug 5, 2024
1 parent d2d59e5 commit 931f004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hearthstone/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def register_entity(self, entity: Entity) -> None:
# Infer Tourists when they reveal themselves
if (
entity.tags.get(GameTag.ZONE) == Zone.REMOVEDFROMGAME and
entity.tags.get(GameTag.TOURIST) == 1
entity.tags.get(GameTag.TOURIST) > 0
):
# This might be the fake Tourist that the game pops up to explain why a card was
# present in the player's deck. Double-check that the card was created by the
Expand Down
2 changes: 1 addition & 1 deletion tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def test_known_starting_deck_list_with_tourist(self, game, player):
GameTag.CONTROLLER: player.player_id,
GameTag.CREATOR: vfx.id,
GameTag.ZONE: Zone.REMOVEDFROMGAME,
GameTag.TOURIST: 1,
GameTag.TOURIST: 2,
GameTag.DRUID_TOURIST: 1,
})
game.register_entity(fake_tourist)
Expand Down

0 comments on commit 931f004

Please sign in to comment.