From 8d51205e8f13e144a3c6a85fd84a317ff9181888 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Fri, 16 Sep 2022 09:18:11 +0200 Subject: [PATCH] Alttp: only check item.type for own items with retro_cave --- worlds/alttp/ItemPool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/alttp/ItemPool.py b/worlds/alttp/ItemPool.py index d7ab3b8491..aa8d7ef3f0 100644 --- a/worlds/alttp/ItemPool.py +++ b/worlds/alttp/ItemPool.py @@ -480,7 +480,7 @@ def set_up_take_anys(world, player): old_man_take_any.shop = TakeAny(old_man_take_any, 0x0112, 0xE2, True, True, total_shop_slots) world.shops.append(old_man_take_any.shop) - swords = [item for item in world.itempool if item.type == 'Sword' and item.player == player] + swords = [item for item in world.itempool if item.player == player and item.type == 'Sword'] if swords: sword = world.random.choice(swords) world.itempool.remove(sword)