Pokemon Emerald: Fix using wrong key for extracted constant (#2484)

This commit is contained in:
Bryce Wilson 2023-11-22 10:21:15 -08:00 committed by GitHub
parent af0d47b444
commit b2e7ce2c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]