battle: fix another interest issue

This commit is contained in:
John Cote 2020-01-09 14:19:35 -05:00
parent 851d4c02ea
commit 83cb21d6eb

View file

@ -96,7 +96,15 @@ class BattlePlace(Place.Place):
def doEnterZone(self, newZoneId):
if newZoneId != self.zoneId:
if newZoneId != None:
base.cr.sendSetZoneMsg(newZoneId)
if base.cr.astronSupport:
if hasattr(self, 'zoneVisDict'):
visList = self.zoneVisDict[newZoneId]
else:
visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId]
base.cr.sendSetZoneMsg(newZoneId, visList)
else:
base.cr.sendSetZoneMsg(newZoneId)
self.notify.debug('Entering Zone %d' % newZoneId)
self.zoneId = newZoneId
return