water pulse tm compatibility workaround

This commit is contained in:
infinitefusion
2022-05-09 18:10:56 -04:00
parent 8c87f763a3
commit 96261fd424
14 changed files with 11 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.