From a33f54b7cb8fd940dd7ada19e62c81ace61207e8 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 26 Mar 2024 21:09:20 -0400 Subject: [PATCH] Don't allow PP to go below 0 with Pressure --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index cae491135..836aea2d9 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2058,7 +2058,7 @@ export class MovePhase extends BattlePhase { if (this.move.ppUsed === this.move.getMove().pp) break; if (opponent.getAbility().id === Abilities.PRESSURE) - this.move.ppUsed++; + this.move.ppUsed = Math.min(this.move.ppUsed + 1, this.move.getMovePp()); } }