Don't allow PP to go below 0 with Pressure

This commit is contained in:
Flashfyre 2024-03-26 21:09:20 -04:00
parent 884c49fc55
commit a33f54b7cb
1 changed files with 1 additions and 1 deletions

View File

@ -2058,7 +2058,7 @@ export class MovePhase extends BattlePhase {
if (this.move.ppUsed === this.move.getMove().pp) if (this.move.ppUsed === this.move.getMove().pp)
break; break;
if (opponent.getAbility().id === Abilities.PRESSURE) if (opponent.getAbility().id === Abilities.PRESSURE)
this.move.ppUsed++; this.move.ppUsed = Math.min(this.move.ppUsed + 1, this.move.getMovePp());
} }
} }