Permalink
Browse files

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

  • Loading branch information...
GraylinKim committed Mar 15, 2013
1 parent dbc79d8 commit 91dc822f9f4edd43c99442153a966892418f5990
Showing with 6 additions and 0 deletions.
  1. +6 −0 sc2reader/resources.py
View
@@ -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

0 comments on commit 91dc822

Please sign in to comment.