Skip to content

Commit

Permalink
Merge pull request #171 from Andrene/upstream
Browse files Browse the repository at this point in the history
force gameheart to exit if game is played in LotV
  • Loading branch information
StoicLoofah authored May 5, 2022
2 parents b9caad9 + 2c4a640 commit d8a1ae2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sc2reader/engine/plugins/gameheart.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ def handleInitGame(self, event, replay):
yield PluginExit(self, code=0, details=dict())
return

# Exit plugin if game is LOTV as LOTV games dont use GameHeart
if replay.expansion == "LotV":
yield PluginExit(self, code=0, details=dict())
return

start_frame = -1
actual_players = {}
for event in replay.tracker_events:
Expand Down

0 comments on commit d8a1ae2

Please sign in to comment.