mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Hotfix Sucker Punch and Upper Hand AI (#1237)
This commit is contained in:
parent
460e94725b
commit
7ae09a31a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user