Actually restrict Sanctuary from being a DW lobby in non-crossed ER modes

This commit is contained in:
aerinon
2021-05-17 13:41:32 -06:00
parent 9f877d8811
commit 8f00f7969b
5 changed files with 9 additions and 1 deletions

View File

@@ -563,6 +563,9 @@ def assign_portal(candidates, possible_portals, world, player):
candidate = random.choice(candidates)
portal_choice = random.choice(possible_portals)
portal = world.get_portal(portal_choice, player)
while candidate.lw_restricted and not portal.light_world:
candidates.remove(candidate)
candidate = random.choice(candidates)
if candidate != portal.door:
if candidate.entranceFlag:
for other_portal in world.dungeon_portals[player]: