We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 879ff16 commit 5808634Copy full SHA for 5808634
sc2reader/events/tracker.py
@@ -411,7 +411,7 @@ def load_context(self, replay):
411
if self.unit_id in replay.objects:
412
# This can happen because game events are done first
413
self.unit = replay.objects[self.unit_id]
414
- if self.unit._type_class.str_id != self.unit_type_name:
+ if self.unit.is_type(self.unit_type_name):
415
print "CONFLICT {} <-_-> {}".format(self.unit._type_class.str_id, self.unit_type_name)
416
else:
417
# TODO: How to tell if something is hallucination?
0 commit comments