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 b641a6b commit 46ee995Copy full SHA for 46ee995
sc2reader/replay.py
@@ -88,6 +88,9 @@ class Replay(object):
88
#: A flag indicating whether all the results are known or not
89
winner_known = bool()
90
91
+ #: If the winner_known flag is set this will contain the winning team
92
+ winner = object()
93
+
94
def __init__(self, replay_file, **options):
95
self.opt = utils.AttributeDict(options)
96
self.datapack = None
@@ -231,6 +234,7 @@ def load_players(self):
231
234
if pdata.result == 1:
232
235
player.team.result = "Win"
233
236
self.winner_known = True
237
+ self.winner = player.team
238
elif pdata.result == 2:
239
player.team.result = "Loss"
240
0 commit comments