Alttp: only check item.type for own items with retro_cave

This commit is contained in:
black-sliver 2022-09-16 09:18:11 +02:00
parent ff05e9d7d5
commit 8d51205e8f
1 changed files with 1 additions and 1 deletions

View File

@ -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)