mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
water pulse tm compatibility workaround
This commit is contained in:
@@ -738,12 +738,18 @@ class Pokemon
|
||||
body_species_id = getBasePokemonID(species)
|
||||
head_species = GameData::Species.get(head_species_id)
|
||||
body_species = GameData::Species.get(body_species_id)
|
||||
return move_data && (head_species.tutor_moves.include?(move_data.id) || body_species.tutor_moves.include?(move_data.id))
|
||||
return move_data && (pokemon_can_learn_move(head_species,move_data) || pokemon_can_learn_move(body_species,move_data))
|
||||
else
|
||||
return move_data && species_data.tutor_moves.include?(move_data.id)
|
||||
return move_data && pokemon_can_learn_move(species_data,move_data)
|
||||
end
|
||||
end
|
||||
|
||||
def pokemon_can_learn_move(species_data, move_data)
|
||||
return species_data.tutor_moves.include?(move_data.id) ||
|
||||
species_data.moves.include?(move_data.id) ||
|
||||
species_data.egg_moves.include?(move_data.id)
|
||||
end
|
||||
|
||||
def can_relearn_move?
|
||||
return false if egg? || shadowPokemon?
|
||||
this_level = self.level
|
||||
|
||||
Reference in New Issue
Block a user