Don't allow PP to go below 0 with Pressure
This commit is contained in:
parent
884c49fc55
commit
a33f54b7cb
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue