mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
6.7.2 patch
This commit is contained in:
@@ -24,7 +24,11 @@ class MoveRelearner_Scene
|
||||
@pokemon=pokemon
|
||||
@moves=moves
|
||||
moveCommands=[]
|
||||
moves.each { |m| moveCommands.push(GameData::Move.get(m).name) }
|
||||
echoln moves
|
||||
moves.each do |m|
|
||||
echoln m.name
|
||||
moveCommands.push(GameData::Move.get(m).name)
|
||||
end
|
||||
# Create sprite hash
|
||||
@viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
|
||||
@viewport.z=99999
|
||||
@@ -169,7 +173,9 @@ class MoveRelearnerScreen
|
||||
end
|
||||
|
||||
pkmn.learned_moves.each do |move|
|
||||
moves.push(move) if !moves.include?(move)
|
||||
move_id = move.is_a?(Symbol) ? move : move.id
|
||||
next if pkmn.hasMove?(move_id)
|
||||
moves.push(move_id) if !moves.include?(move_id)
|
||||
end
|
||||
|
||||
tmoves = []
|
||||
@@ -178,6 +184,7 @@ class MoveRelearnerScreen
|
||||
tmoves.push(i) if !pkmn.hasMove?(i) && !moves.include?(i)
|
||||
end
|
||||
end
|
||||
|
||||
moves = tmoves + moves
|
||||
return moves | [] # remove duplicates
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user