From 6cedbe8b3d736563351963ce1c5af545eaa649d5 Mon Sep 17 00:00:00 2001 From: CookieCat Date: Sat, 9 Sep 2023 19:47:18 -0400 Subject: [PATCH] variable capture my beloathed --- worlds/ahit/Rules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worlds/ahit/Rules.py b/worlds/ahit/Rules.py index 4030a27e3c..6dea5555e7 100644 --- a/worlds/ahit/Rules.py +++ b/worlds/ahit/Rules.py @@ -636,7 +636,8 @@ def set_alps_rules(world: World): and state.has("Zipline Unlock - The Windmill Path", world.player)) for (loc, zipline) in zipline_unlocks.items(): - add_rule(world.multiworld.get_location(loc, world.player), lambda state: state.has(zipline, world.player)) + add_rule(world.multiworld.get_location(loc, world.player), + lambda state, z=zipline: state.has(z, world.player)) def set_dlc1_rules(world: World):