def _addPlayer(self, accountDBID, **kwargs): if ( "role" in kwargs and kwargs["role"] & UNIT_ROLE.CREATOR == UNIT_ROLE.CREATOR and self._playerSlots.get(accountDBID) == LEADER_SLOT ): self._creatorDBID = accountDBID UnitBase._addPlayer(self, accountDBID, **kwargs)
def _addPlayer(self, accountDBID, **kwargs): if 'role' in kwargs and kwargs['role'] & UNIT_ROLE.CREATOR == UNIT_ROLE.CREATOR and self._playerSlots.get(accountDBID) == LEADER_SLOT: self._creatorDBID = accountDBID UnitBase._addPlayer(self, accountDBID, **kwargs)
def _addPlayer(self, playerID, **kwargs): if 'role' in kwargs and kwargs['role'] & UNIT_ROLE.COMMANDER_UPDATES > 0: self._creatorDBID = playerID UnitBase._addPlayer(self, playerID, **kwargs)