Skip to content

Commit 1ecad3e

Browse files
committed
Export child packets of SUBSPELL "blocks"
The specific need for this is to support the later wings of the Tombs of Terror adventure, in which a FULL_ENTITY is emitted inside a SUBSPELL and then a TAG_CHANGE _outside_ of the SUBSPELL attempts to modify it.
1 parent 3064542 commit 1ecad3e

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

hslog/export.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def handle_reset_game(self, packet):
9393
pass
9494

9595
def handle_sub_spell(self, packet):
96-
pass
96+
for p in packet.packets:
97+
self.export_packet(p)
9798

9899

99100
class EntityTreeExporter(BaseExporter):

tests/test_logs.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,14 @@ def test_inferrable_player(parser):
122122
exporter = EntityTreeExporter(packet_tree)
123123
exporter.export()
124124
assert True
125+
126+
127+
@pytest.mark.regression_suite
128+
def test_full_entity_defined_in_subspell(parser):
129+
with open(logfile("34104_subspell.power.log")) as f:
130+
parser.read(f)
131+
132+
packet_tree = parser.games[0]
133+
exporter = EntityTreeExporter(packet_tree)
134+
exporter.export()
135+
assert True

0 commit comments

Comments
 (0)