We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd0587 commit 12c6659Copy full SHA for 12c6659
hearthstone/entities.py
@@ -147,12 +147,9 @@ def register_entity(self, entity: Entity) -> None:
147
# Tourist VFX enchantment.
148
creator_id = entity.tags.get(GameTag.CREATOR)
149
creator = self.find_entity_by_id(creator_id) if creator_id else None
150
- creator_is_vfx = (
151
- getattr(creator, "card_id") == "VAC_422e"
152
- if creator is not None else False
153
- )
+ creator_is_vfx = getattr(creator, "card_id", None) == "VAC_422e"
154
player = entity.controller
155
- tourist_card_id = getattr(entity, "card_id")
+ tourist_card_id = getattr(entity, "card_id", None)
156
if creator_is_vfx and player is not None and tourist_card_id is not None:
157
player._known_starting_card_ids.add(tourist_card_id)
158
0 commit comments