We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df4c4d7 commit c74ac0fCopy full SHA for c74ac0f
1 file changed
hslog/export.py
@@ -212,14 +212,6 @@ def handle_full_entity(self, packet):
212
if GameTag.CONTROLLER in tags:
213
self._controller_map[packet.entity] = tags[GameTag.CONTROLLER]
214
215
- # The following logic only works for pre-13619 logs
216
- # The first FULL_ENTITY packet which is in Zone.HAND and does *not*
217
- # have an ID is owned by the friendly player's *opponent*.
218
- if tags.get(GameTag.ZONE, 0) == Zone.HAND and not packet.card_id:
219
- controller = self._controller_map[packet.entity]
220
- # That controller is the enemy player - return its opponent.
221
- self.friendly_player = controller % 2 + 1
222
-
223
def handle_show_entity(self, packet):
224
tags = dict(packet.tags)
225
0 commit comments