Skip to content

Commit 210b936

Browse files
dsjoergGraylinKim
authored andcommitted
fix the CONFLICT complaint
1 parent f88056d commit 210b936

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sc2reader/events/tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def load_context(self, replay):
411411
if self.unit_id in replay.objects:
412412
# This can happen because game events are done first
413413
self.unit = replay.objects[self.unit_id]
414-
if self.unit.is_type(self.unit_type_name):
414+
if not self.unit.is_type(self.unit_type_name):
415415
print "CONFLICT {} <-_-> {}".format(self.unit._type_class.str_id, self.unit_type_name)
416416
else:
417417
# TODO: How to tell if something is hallucination?

sc2reader/scripts/sc2parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def main():
8282
print pid, info
8383
for message in replay.raw_data['replay.message.events'].messages:
8484
print message.pid, message.text
85-
print replay.raw_data['replay.initData'].player_names
85+
# print replay.raw_data['replay.initData'].player_names
8686
traceback.print_exc()
8787
print
8888
except Exception as e2:

0 commit comments

Comments
 (0)