Fixed incorrect Pokémon icons shown in Ready Menu if there are eggs in the party

This commit is contained in:
Maruno17
2022-05-20 19:11:12 +01:00
parent d5e26d13f7
commit ce5d68a904

View File

@@ -305,8 +305,8 @@ def pbUseKeyItem
:WATERFALL, :WHIRLPOOL]
real_moves = []
moves.each do |move|
$player.pokemon_party.each_with_index do |pkmn, i|
next if !pkmn.hasMove?(move)
$player.party.each_with_index do |pkmn, i|
next if pkmn.egg? || !pkmn.hasMove?(move)
real_moves.push([move, i]) if pbCanUseHiddenMove?(pkmn, move, false)
end
end