Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)