Skip to content

Commit

Permalink
Stop Z-Moves from listing PP values
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jun 20, 2024
1 parent ef2dfec commit d40e4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/api/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default async (client, interaction, ephemeral) => {
{ name: "Target:", value: target, inline: true }
]);
if (move.critRatio !== 1) pokemonEmbed.addFields([{ name: "Crit Rate:", value: move.critRatio.toString(), inline: true }]);
if (!move.isMax) pokemonEmbed.addFields([{ name: "PP:", value: ppString, inline: true }]);
if (!move.isMax && !move.isZ) pokemonEmbed.addFields([{ name: "PP:", value: ppString, inline: true }]);
if (move.priority !== 0) pokemonEmbed.addFields([{ name: "Priority:", value: move.priority.toString(), inline: true }]);
if (move.contestType && [3, 4, 6].includes(generation)) pokemonEmbed.addFields([{ name: "Contest Type:", value: move.contestType, inline: true }]); // Gen 3, 4, 6 have contests. I think.
if (move.zMove && move.zMove.basePower && generation == 7) pokemonEmbed.addFields([{ name: "Z-Power:", value: move.zMove.basePower.toString(), inline: true }]);
Expand Down

0 comments on commit d40e4eb

Please sign in to comment.