From 5e0ec96c66787c8b056eb2b71e6c3c5d657fdf27 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Tue, 12 Jul 2022 01:32:16 -0500 Subject: [PATCH] Fixed issue with playthrus for Murahdahla+Beatable --- Rules.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Rules.py b/Rules.py index 73e572b9..35572ec5 100644 --- a/Rules.py +++ b/Rules.py @@ -59,8 +59,9 @@ def set_rules(world, player): # require aga2 to beat ganon add_rule(world.get_location('Ganon', player), lambda state: state.has('Beat Agahnim 2', player)) elif world.goal[player] in ['triforcehunt', 'trinity']: - if ('Murahdahla', player) in world._location_cache: - add_rule(world.get_location('Murahdahla', player), lambda state: state.item_count('Triforce Piece', player) + state.item_count('Power Star', player) >= int(state.world.treasure_hunt_count[player])) + for location in world.get_region('Hyrule Castle Courtyard', player).locations: + if location.name == 'Murahdahla': + add_rule(location, lambda state: state.item_count('Triforce Piece', player) + state.item_count('Power Star', player) >= int(state.world.treasure_hunt_count[player])) # if swamp and dam have not been moved we require mirror for swamp palace if not world.swamp_patch_required[player]: