Skip to content

Commit

Permalink
Merge pull request #177 from Andrene/upstream
Browse files Browse the repository at this point in the history
Context.py event attribute fixes
  • Loading branch information
StoicLoofah authored Aug 20, 2022
2 parents c17bd35 + 310cb1d commit 7da58b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sc2reader/engine/plugins/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def handleUnitDiedEvent(self, event, replay):
else:
self.logger.error(
"Unable to delete unit index {} at {} [{}], index not active.".format(
event.killer_pid, Length(seconds=event.second), event.frame
event.unit_id_index, Length(seconds=event.second), event.frame
)
)
else:
Expand Down Expand Up @@ -307,7 +307,7 @@ def handleUnitDoneEvent(self, event, replay):
else:
self.logger.error(
"Unit {} done at {} [{}] before it was started!".format(
event.killer_pid, Length(seconds=event.second), event.frame
event.unit_id, Length(seconds=event.second), event.frame
)
)

Expand All @@ -323,7 +323,7 @@ def handleUnitPositionsEvent(self, event, replay):
else:
self.logger.error(
"Unit at active_unit index {} moved at {} [{}] but it doesn't exist!".format(
event.killer_pid, Length(seconds=event.second), event.frame
unit_index, Length(seconds=event.second), event.frame
)
)

Expand Down

0 comments on commit 7da58b1

Please sign in to comment.