Fixed moves taught via battle Debug menu not working, fixed Max Mushrooms showing the stat up animation for every stat

This commit is contained in:
Maruno17
2022-04-24 21:06:40 +01:00
parent ad29dc6dc4
commit fd5d3e332d
2 changed files with 7 additions and 6 deletions

View File

@@ -484,7 +484,7 @@ MenuHandlers.add(:battle_pokemon_debug_menu, :teach_move, {
next
end
pkmn.learn_move(new_move)
battler&.moves&.push(Battle::Move.from_pokemon_move(self, pkmn.moves.last))
battler&.moves&.push(Battle::Move.from_pokemon_move(battle, pkmn.moves.last))
pbMessage("\\ts[]" + _INTL("{1} learned {2}!", pkmn.name, move_name))
}
})