Fixes move remembering issue when unfusing

This commit is contained in:
chardub
2025-04-10 19:52:18 -04:00
parent e1b6d7e7a9
commit be2edbef70
5 changed files with 5 additions and 6 deletions

View File

@@ -1196,7 +1196,6 @@ class PokemonPartyScreen
#exclude current moves
echoln "learned moves: #{learnable_moves}"
for current_move in pokemon.moves
echoln current_move.id
if learnable_moves.include?(current_move.id)
learnable_moves.delete(current_move.id)
end
@@ -1204,7 +1203,7 @@ class PokemonPartyScreen
move_ids = []
for move in learnable_moves
if move.is_a?(Symbol)
move_ids << move
move_ids << move if pokemon.compatible_with_move?(move)
end
end