diff --git a/src/data/ability.ts b/src/data/ability.ts index 5994622048c..3500b4924cb 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2452,7 +2452,7 @@ export class PostSummonTransformAbAttr extends PostSummonAbAttr { } pokemon.summonData.moveset = target.getMoveset().map(m => { - const pp = m?.getMove().pp!; + const pp = m?.getMove().pp ?? 0; // if PP value is less than 5, do nothing. If greater, we need to reduce the value to 5 using a negative ppUp value. const ppUp = pp <= 5 ? 0 : (5 - pp) / Math.max(Math.floor(pp / 5), 1); return new PokemonMove(m?.moveId ?? Moves.NONE, 0, ppUp);