From fbec7b8823e5d5c76b57f701339b677c76a23403 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 8 Apr 2024 11:06:06 -0400 Subject: [PATCH] Only apply Pressure effect when targeted --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index 576b77e56..bd91b501e 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2099,7 +2099,8 @@ export class MovePhase extends BattlePhase { if (!moveQueue.length || !moveQueue.shift().ignorePP) { this.move.ppUsed++; - for (let opponent of this.pokemon.getOpponents()) { + const targetedOpponents = this.pokemon.getOpponents().filter(o => this.targets.includes(o.getBattlerIndex())); + for (let opponent of targetedOpponents) { if (this.move.ppUsed === this.move.getMove().pp) break; if (opponent.getAbility().id === Abilities.PRESSURE)