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