mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SM: comeback fix5 (#1746)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user