From 7ae09a31a50501049e2d39190b97c6529830be59 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Wed, 22 May 2024 22:13:39 +1000 Subject: [PATCH] Hotfix Sucker Punch and Upper Hand AI (#1237) --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index c319ae43502..75631c0f6d2 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -3084,7 +3084,7 @@ export class EnemyPokemon extends Pokemon { const target = this.scene.getField()[mt]; let targetScore = move.getUserBenefitScore(this, target, move) + move.getTargetBenefitScore(this, target, move) * (mt < BattlerIndex.ENEMY === this.isPlayer() ? 1 : -1); - if (move.name.endsWith(' (N)') || !move.applyConditions(this, target, move)) + if ((move.name.endsWith(' (N)') || !move.applyConditions(this, target, move)) && ![Moves.SUCKER_PUNCH, Moves.UPPER_HAND].includes(move.id)) targetScore = -20; else if (move instanceof AttackMove) { const effectiveness = target.getAttackMoveEffectiveness(this, pokemonMove);