From b2e7ce2c36df5546510c046a0592e4233c35c79c Mon Sep 17 00:00:00 2001 From: Bryce Wilson Date: Wed, 22 Nov 2023 10:21:15 -0800 Subject: [PATCH] Pokemon Emerald: Fix using wrong key for extracted constant (#2484) --- worlds/pokemon_emerald/pokemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/pokemon_emerald/pokemon.py b/worlds/pokemon_emerald/pokemon.py index b461d006a46f..13c92ddc09bd 100644 --- a/worlds/pokemon_emerald/pokemon.py +++ b/worlds/pokemon_emerald/pokemon.py @@ -173,7 +173,7 @@ def get_random_move( # We're either matching types or failed to pick a move above if type_target is None: - possible_moves = [i for i in range(data.constants["MOVE_COUNT"]) if i not in expanded_blacklist] + possible_moves = [i for i in range(data.constants["MOVES_COUNT"]) if i not in expanded_blacklist] else: possible_moves = [move for move in _moves_by_type[type_target[0]] if move not in expanded_blacklist] + \ [move for move in _moves_by_type[type_target[1]] if move not in expanded_blacklist]