mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Made tutored moves learnable by Pokémon if they can get the move via level/egg move, followers won't follow the player if they already have a move route, added console warning if a different version of mkxp-z is detected
This commit is contained in:
@@ -707,7 +707,11 @@ class Pokemon
|
||||
# @return [Boolean] whether the Pokémon is compatible with the given move
|
||||
def compatible_with_move?(move_id)
|
||||
move_data = GameData::Move.try_get(move_id)
|
||||
return move_data && species_data.tutor_moves.include?(move_data.id)
|
||||
return false if !move_data
|
||||
return true if species_data.tutor_moves.include?(move_data.id)
|
||||
return true if getMoveList.any? { |m| m[1] == move_data.id }
|
||||
return true if species_data.get_egg_moves.include?(move_data.id)
|
||||
return false
|
||||
end
|
||||
|
||||
def can_relearn_move?
|
||||
|
||||
Reference in New Issue
Block a user