Skip to content

Commit

Permalink
Fix Accupressure target selection in Free-For-All
Browse files Browse the repository at this point in the history
  • Loading branch information
DaWoblefet committed Jul 19, 2024
1 parent 749e149 commit 8f483ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions play.pokemonshowdown.com/js/client-battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,7 @@

var target = e.getAttribute('data-target');
var choosableTargets = {normal: 1, any: 1, adjacentAlly: 1, adjacentAllyOrSelf: 1, adjacentFoe: 1};
if (this.battle.gameType === 'freeforall') delete choosableTargets['adjacentAllyOrSelf'];

this.choice.choices.push('move ' + pos + (isMega ? ' mega' : '') + (isMegaX ? ' megax' : isMegaY ? ' megay' : '') + (isZMove ? ' zmove' : '') + (isUltraBurst ? ' ultra' : '') + (isDynamax ? ' dynamax' : '') + (isTerastal ? ' terastallize' : ''));
if (nearActive.length > 1 && target in choosableTargets) {
Expand Down

0 comments on commit 8f483ef

Please sign in to comment.