def __getTeamOverrides(self, vo, arenaDP): team = vo.team if team in self.__reusable: isEnemy, overrides = self.__reusable[team] else: isEnemy = arenaDP.isEnemyTeam(team) overrides = team_overrides.makeOverrides(isEnemy, team, self._personalInfo, self._arenaVisitor, isReplayPlaying=BattleReplay.g_replayCtrl.isPlaying) self.__reusable[team] = (isEnemy, overrides) return (isEnemy, overrides)
def __getTeamOverrides(self, vo, arenaDP): team = vo.team if team in self.__reusable: isEnemy, overrides = self.__reusable[team] else: isEnemy = self.__isEnemyTeam(arenaDP, team) overrides = team_overrides.makeOverrides(isEnemy, team, self._personalInfo, self._arenaVisitor, isReplayPlaying=self.sessionProvider.isReplayPlaying) self.__reusable[team] = (isEnemy, overrides) return (isEnemy, overrides)