Skip to content

Commit f3677bf

Browse files
committed
Temporary fix to TargetAbilityEvent.__str__
1 parent 17df801 commit f3677bf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sc2reader/events.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ def __str__(self):
166166
if isinstance(self.target, DataObject):
167167
target = "{0} [{1:0>8X}]".format(self.target.name, self.target.id)
168168
else:
169-
if self.target[1] in self.data.types:
170-
target = "{0} [{1:0>8X}]".format(self.data.types[self.target[1]].name,self.target[0])
171-
else:
172-
target = "UNKNOWN {0}".format(hex(self.target[1]))
173-
169+
target = "{0:X} [{1:0>8X}".format(self.target[1], self.target[0])
174170
else:
175171
target = "NONE"
176172

0 commit comments

Comments
 (0)