From 6c88c180310f01eac15272a9c9da4c8a1859dd25 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Tue, 24 Sep 2024 20:27:59 -0400 Subject: [PATCH] Small logic fix --- pokemonred_puffer/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index ccc5957..5757e2b 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -1294,7 +1294,7 @@ def blackout_hook(self, *args, **kwargs): def blackout_update_hook(self, *args, **kwargs): self.blackout_check = self.read_m("wLastBlackoutMap") - if MapIds(self.blackout_check) in self.disable_wild_encounters: + if MapIds(self.blackout_check).name in self.disable_wild_encounters: self.pyboy.memory[self.pyboy.symbol_lookup("wRepelRemainingSteps")[1]] = 0x01 def pokecenter_heal_hook(self, *args, **kwargs):