SM: comeback fix5 (#1746)

This commit is contained in:
lordlou
2023-04-21 20:57:31 -04:00
committed by GitHub
parent a7a17a5a4d
commit 5e84f91d2f

View File

@@ -671,7 +671,7 @@ class SMWorld(World):
def collect(self, state: CollectionState, item: Item) -> bool: def collect(self, state: CollectionState, item: Item) -> bool:
state.smbm[self.player].addItem(item.type) state.smbm[self.player].addItem(item.type)
if item.location != None: if item.location != None and item.location.game == self.game:
for entrance in self.multiworld.get_region(item.location.parent_region.name, item.location.player).entrances: for entrance in self.multiworld.get_region(item.location.parent_region.name, item.location.player).entrances:
if (entrance.parent_region.can_reach(state)): if (entrance.parent_region.can_reach(state)):
state.smbm[item.location.player].lastAP = entrance.parent_region.name state.smbm[item.location.player].lastAP = entrance.parent_region.name