From 138c884684337e565245cba6ce402940b20e93d2 Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Mon, 30 Aug 2021 19:43:48 -0500 Subject: [PATCH] wipe reachable regions during TR key logic checks to ensure properly finding logic regions --- worlds/alttp/Rules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worlds/alttp/Rules.py b/worlds/alttp/Rules.py index c9837e78..28b4acb8 100644 --- a/worlds/alttp/Rules.py +++ b/worlds/alttp/Rules.py @@ -854,6 +854,7 @@ def set_trock_key_rules(world, player): set_rule(world.get_entrance(entrance, player), lambda state: False) all_state = world.get_all_state(True) + all_state.reachable_regions[player] = set() # wipe reachable regions so that the locked doors actually work # Check if each of the four main regions of the dungoen can be reached. The previous code section prevents key-costing moves within the dungeon. can_reach_back = all_state.can_reach(world.get_region('Turtle Rock (Eye Bridge)', player)) if world.can_access_trock_eyebridge[player] is None else world.can_access_trock_eyebridge[player]