Skip to content

Commit 85cec1c

Browse files
committed
feat: initial_zone_position on entity
1 parent e8fc6e3 commit 85cec1c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hearthstone/entities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self, id):
1818
self.tags: GameTagsDict = {}
1919
self.initial_creator = 0
2020
self.initial_zone: Zone = Zone.INVALID
21+
self.initial_zone_position = 0
2122
self._initial_controller = 0
2223

2324
def __repr__(self):
@@ -113,6 +114,7 @@ def register_entity(self, entity: Entity) -> None:
113114
entity.game = self
114115
self._entities[entity.id] = entity
115116
entity.initial_zone = entity.zone
117+
entity.initial_zone_position = entity.tags.get(GameTag.ZONE_POSITION, 0)
116118

117119
if isinstance(entity, Player):
118120
self.players.append(entity)

0 commit comments

Comments
 (0)