Skip to content

Commit

Permalink
Update pokedexEvolution.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fakuzatsu authored Dec 18, 2024
1 parent fa3c700 commit a0ebd36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/pokedexEvolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ function evolutionMode(pokemonInfo, monsID, imageLnk) {
if (description.length === 0)
return "Sorry! This Pokémon is not known to evolve from or into anything.\n...At least not that I know of!\n\nSee more in the [Pokédex](https://luminescent.team/pokedex/${monsID}).";

const pokemonPath = pokemonInfo.formno === 0 ? pokemonInfo.monsno : `${pokemonInfo.monsno}_${pokemonInfo.formno}`;
description.push(
`See more in the [Pokédex](https://luminescent.team/pokedex/${monsID}).`,
`See more in the [Pokédex](https://luminescent.team/pokedex/${pokemonPath})`,
);

return description.join("\n");
Expand Down

0 comments on commit a0ebd36

Please sign in to comment.