Fix PP ups going above 3
parent
656550dd2d
commit
814eb3053e
|
@ -1087,7 +1087,7 @@ export class PokemonPpUpModifier extends ConsumablePokemonMoveModifier {
|
||||||
apply(args: any[]): boolean {
|
apply(args: any[]): boolean {
|
||||||
const pokemon = args[0] as Pokemon;
|
const pokemon = args[0] as Pokemon;
|
||||||
const move = pokemon.getMoveset()[this.moveIndex];
|
const move = pokemon.getMoveset()[this.moveIndex];
|
||||||
move.ppUp = Math.min(move.ppUp + this.upPoints, move.ppUp + 3);
|
move.ppUp = Math.min(move.ppUp + this.upPoints, 3);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue