From ca58c8130aa4ff45919c651c7340e1089c836f9a Mon Sep 17 00:00:00 2001 From: Little Cat Date: Tue, 10 Jan 2023 19:03:52 -0400 Subject: [PATCH] battle: Add missing change from previous commit --- toontown/battle/BattlePlace.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/toontown/battle/BattlePlace.py b/toontown/battle/BattlePlace.py index b004e35..e504cf8 100644 --- a/toontown/battle/BattlePlace.py +++ b/toontown/battle/BattlePlace.py @@ -97,13 +97,14 @@ class BattlePlace(Place.Place): if newZoneId != self.zoneId: if newZoneId != None: if __astron__: - if hasattr(self, 'zoneVisDict'): - visList = self.zoneVisDict[newZoneId] - else: - visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId] + # NOTE: This gets generated during the Quiet Zone transition. + # See: toontown/hood/QuietZoneState.py (getCogHQViszones) + visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId] if newZoneId not in visList: visList.append(newZoneId) + if ZoneUtil.getBranchZone(newZoneId) not in visList: + visList.append(ZoneUtil.getBranchZone(newZoneId)) base.cr.sendSetZoneMsg(newZoneId, visList) else: