Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refs #96, no observers and AIs in ladder games.

  • Loading branch information...
commit 91dc822f9f4edd43c99442153a966892418f5990 1 parent dbc79d8
@GraylinKim authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 sc2reader/resources.py
View
6 sc2reader/resources.py
@@ -452,6 +452,12 @@ def createPlayer(pid, pdata, attributes):
hash_input = self.gateway+":"+','.join(player_names)
self.people_hash = hashlib.sha256(hash_input).hexdigest()
+ # The presence of observers and/or computer players makes this not actually ladder
+ # This became an issue in HotS where Training, vs AI, Unranked, and Ranked
+ # were all marked with "amm" => Ladder
+ if len(self.observers) > 0 or len(self.humans) != len(self.players):
+ replay.is_ladder = False
+
def load_messages(self):
if 'replay.message.events' in self.raw_data:
self.messages = self.raw_data['replay.message.events'].messages
Please sign in to comment.
Something went wrong with that request. Please try again.