mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-29 13:08:44 +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) {
|
if (!moveQueue.length || !moveQueue.shift().ignorePP) {
|
||||||
this.move.ppUsed++;
|
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)
|
if (this.move.ppUsed === this.move.getMove().pp)
|
||||||
break;
|
break;
|
||||||
if (opponent.getAbility().id === Abilities.PRESSURE)
|
if (opponent.getAbility().id === Abilities.PRESSURE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user