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

View File

@ -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());
}
}