def handleAvatarLeave(self, avatar, reason):
        DistributedBattleZoneAI.handleAvatarLeave(self, avatar, reason)

        if hasattr(self, 'watchingAvatarIds') and len(
                self.watchingAvatarIds) == 0:
            self.resetEverything()
            self.bldg.elevator.b_setState('opening')
예제 #2
0
    def handleAvatarLeave(self, avatar, reason):
        DistributedBattleZoneAI.handleAvatarLeave(self, avatar, reason)

        if hasattr(self, 'watchingAvatarIds') and len(
                self.watchingAvatarIds) == 0:
            self.requestDelete()
            self.air.shutdown()