File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,23 @@ def test_reset_game(self):
377377 ))
378378 parser .flush ()
379379
380+ def test_reset_game_from_rewind (self ):
381+ parser = LogParser ()
382+ parser .read (StringIO (data .INITIAL_GAME ))
383+
384+ # This shouldn't raise an exception
385+ # Rewind has FULL_ENTITY updates after RESET_GAME, inside GAME_RESET Block
386+ parser .read (StringIO (
387+ "D 00:38:37.2981040 GameState.DebugPrintPower() - BLOCK_START BlockType=GAME_RESET Entity=[entityName=Stadium Announcer id=16 zone=PLAY zonePos=1 cardId=TIME_034 player=1] EffectCardId=System.Collections.Generic.List`1[System.String] EffectIndex=-1 Target=0 SubOption=-1\n " # noqa
388+ "D 00:38:37.2981040 GameState.DebugPrintPower() - RESET_GAME\n " # noqa
389+ "D 00:38:37.2981040 GameState.DebugPrintPower() - FULL_ENTITY - Updating [entityName=Portal Vanguard id=10 zone=DECK zonePos=0 cardId= player=1] CardID=\n " # noqa
390+ "D 00:38:37.2981040 GameState.DebugPrintPower() - tag=ZONE value=DECK\n " # noqa
391+ "D 00:38:37.2981040 GameState.DebugPrintPower() - tag=CONTROLLER value=1\n " # noqa
392+ "D 00:38:37.2981040 GameState.DebugPrintPower() - tag=ENTITY_ID value=10\n " # noqa
393+ "D 00:38:37.2981040 GameState.DebugPrintPower() - BLOCK_END\n " # noqa
394+ ))
395+ parser .flush ()
396+
380397 def test_sub_spell (self ):
381398 parser = LogParser ()
382399 parser .read (StringIO (data .INITIAL_GAME ))
You can’t perform that action at this time.
0 commit comments