Skip to content

Commit

Permalink
Pokemon Emerald: Fix using wrong key for extracted constant (#2484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zunawe authored Nov 22, 2023
1 parent af0d47b commit b2e7ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/pokemon_emerald/pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b2e7ce2

Please sign in to comment.