Fixes issue with learning tm

This commit is contained in:
infinitefusion
2023-07-02 21:53:38 -04:00
parent fd1e5695ff
commit 33a76f1a0c

View File

@@ -145,12 +145,11 @@ end
#param2 = true pour body, false pour head
#return int du pokemon de base
def getBasePokemonID(pokemon, body = true)
return nil if pokemon <= 0
if pokemon.is_a?(Symbol)
dex_number = GameData::Species.get(pokemon).id_number
pokemon = dex_number
end
return nil if pokemon <= 0
# cname = getConstantName(PBSpecies, pokemon) rescue nil
cname = GameData::Species.get(pokemon).id.to_s
return pokemon if pokemon <= NB_POKEMON