diff --git a/play.pokemonshowdown.com/js/client-battle.js b/play.pokemonshowdown.com/js/client-battle.js index 144da9e043..55ea42052f 100644 --- a/play.pokemonshowdown.com/js/client-battle.js +++ b/play.pokemonshowdown.com/js/client-battle.js @@ -585,6 +585,8 @@ this.finalDecisionMove = curActive.maybeDisabled || false; this.finalDecisionSwitch = curActive.maybeTrapped || false; + this.finalDecisionPartiallyTrapped = curActive.maybePartiallyTrapped || false; + this.finalDecisionPartiallyTrapping = curActive.maybePartiallyTrapping || false; for (var i = pos + 1; i < this.battle.nearSide.active.length; ++i) { var p = this.battle.nearSide.active[i]; if (p && !p.fainted) { @@ -677,8 +679,8 @@ var name = move.name; var pp = moveData.pp + '/' + moveData.maxpp; if (!moveData.maxpp) pp = '–'; - if (move.id === 'Struggle' || move.id === 'Recharge') pp = '–'; - if (move.id === 'Recharge') move.type = '–'; + if (move.id === 'Struggle' || move.id === 'Recharge' || move.id === 'Fight') pp = '–'; + if (move.id === 'Recharge' || move.id === 'Fight') move.type = '–'; if (name.substr(0, 12) === 'Hidden Power') name = 'Hidden Power'; var moveType = this.tooltips.getMoveType(move, typeValueTracker)[0]; var tooltipArgs = 'move|' + moveData.move + '|' + pos; @@ -751,6 +753,12 @@ if (this.finalDecisionMove) { moveMenu += 'You might have some moves disabled, so you won\'t be able to cancel an attack!
'; } + if (this.finalDecisionPartiallyTrapped) { + moveMenu += 'You might be partially trapped, if you are still partially trapped then you might be unable to cancel attempting to attack!
'; + } + if (this.finalDecisionPartiallyTrapping) { + moveMenu += 'You might be partially trapping, if you are still partially trapping then you might be unable to cancel attempting to attack!
'; + } moveMenu += '
'; var moveControls = ( @@ -1108,7 +1116,7 @@ } this.choice = choiceText ? { waiting: true } : null; - this.finalDecision = this.finalDecisionMove = this.finalDecisionSwitch = false; + this.finalDecision = this.finalDecisionMove = this.finalDecisionSwitch = this.finalDecisionPartiallyTrapped = this.finalDecisionPartiallyTrapping = false; this.request = request; if (request.side) { this.updateSideLocation(request.side);