mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
Only apply Pressure effect when targeted
This commit is contained in:
parent
34cb70afa5
commit
fbec7b8823
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user