Skip to content

Commit

Permalink
Pokemon Emerald: Fix shoal cave flag wrong byte, delay bounce to end …
Browse files Browse the repository at this point in the history
…of map transition
  • Loading branch information
Zunawe committed Oct 2, 2024
1 parent d0133b6 commit 4d39e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/pokemon_emerald/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,13 @@ async def handle_tracker_info(self, ctx: "BizHawkClientContext", guards: Dict[st
(sb1_address + 0x4, 2, "System Bus"), # Current map
(sb1_address + 0x1450 + (data.constants["FLAG_SYS_SHOAL_TIDE"] // 8), 1, "System Bus"),
],
[guards["SAVE BLOCK 1"]]
[guards["IN OVERWORLD"], guards["SAVE BLOCK 1"]]
)
if read_result is None: # Save block moved
return

current_map = int.from_bytes(read_result[0], "big")
shoal_cave = int(read_result[0][0] & (1 << (data.constants["FLAG_SYS_SHOAL_TIDE"] % 8)) > 0)
shoal_cave = int(read_result[1][0] & (1 << (data.constants["FLAG_SYS_SHOAL_TIDE"] % 8)) > 0)
if current_map != self.current_map:
self.current_map = current_map
await ctx.send_msgs([{
Expand Down

0 comments on commit 4d39e1d

Please sign in to comment.