From 31bf0365a3ff15e214d3c16478182e7253ae8c77 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 20 Sep 2020 00:00:53 +0200 Subject: [PATCH] Fix insanity ER sometimes failing in inverted due to not correctly comparing player's shuffle state --- Rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rules.py b/Rules.py index 068feeee26..1a5fa98804 100644 --- a/Rules.py +++ b/Rules.py @@ -61,7 +61,7 @@ def set_rules(world, player): if world.mode[player] != 'inverted': set_big_bomb_rules(world, player) - if world.logic[player] in ['owglitches', 'nologic'] and world.shuffle not in ('insanity', 'insanity_legacy'): + if world.logic[player] in {'owglitches', 'nologic'} and world.shuffle[player] not in {'insanity', 'insanity_legacy', 'madness'}: path_to_courtyard = mirrorless_path_to_castle_courtyard(world, player) add_rule(world.get_entrance('Pyramid Fairy', player), lambda state: state.world.get_entrance('Dark Death Mountain Offset Mirror', player).can_reach(state) and all(rule(state) for rule in path_to_courtyard), 'or') else: