mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Added a Setting to toggle whether the Move Reminder can teach previously known egg moves/TRs
This commit is contained in:
@@ -154,13 +154,13 @@ class MoveRelearnerScreen
|
||||
next if m[0] > pkmn.level || pkmn.hasMove?(m[1])
|
||||
moves.push(m[1]) if !moves.include?(m[1])
|
||||
end
|
||||
tmoves = []
|
||||
if pkmn.first_moves
|
||||
if Settings::MOVE_RELEARNER_CAN_TEACH_MORE_MOVES && pkmn.first_moves
|
||||
tmoves = []
|
||||
pkmn.first_moves.each do |i|
|
||||
tmoves.push(i) if !pkmn.hasMove?(i) && !moves.include?(i)
|
||||
tmoves.push(i) if !moves.include?(i) && !pkmn.hasMove?(i)
|
||||
end
|
||||
moves = tmoves + moves # List first moves before level-up moves
|
||||
end
|
||||
moves = tmoves + moves
|
||||
return moves | [] # remove duplicates
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user