|
585 | 585 |
|
586 | 586 | this.finalDecisionMove = curActive.maybeDisabled || false;
|
587 | 587 | this.finalDecisionSwitch = curActive.maybeTrapped || false;
|
588 |
| - this.finalDecisionPartiallyTrapped = curActive.maybePartiallyTrapped || false; |
589 |
| - this.finalDecisionPartiallyTrapping = curActive.maybePartiallyTrapping || false; |
590 | 588 | for (var i = pos + 1; i < this.battle.nearSide.active.length; ++i) {
|
591 | 589 | var p = this.battle.nearSide.active[i];
|
592 | 590 | if (p && !p.fainted) {
|
|
679 | 677 | var name = move.name;
|
680 | 678 | var pp = moveData.pp + '/' + moveData.maxpp;
|
681 | 679 | if (!moveData.maxpp) pp = '–';
|
682 |
| - if (move.id === 'Struggle' || move.id === 'Recharge' || move.id === 'Fight') pp = '–'; |
683 |
| - if (move.id === 'Recharge' || move.id === 'Fight') move.type = '–'; |
| 680 | + if (move.id === 'Struggle' || move.id === 'Recharge') pp = '–'; |
| 681 | + if (move.id === 'Recharge') move.type = '–'; |
684 | 682 | if (name.substr(0, 12) === 'Hidden Power') name = 'Hidden Power';
|
685 | 683 | var moveType = this.tooltips.getMoveType(move, typeValueTracker)[0];
|
686 | 684 | var tooltipArgs = 'move|' + moveData.move + '|' + pos;
|
|
753 | 751 | if (this.finalDecisionMove) {
|
754 | 752 | moveMenu += '<em style="display:block;clear:both">You <strong>might</strong> have some moves disabled, so you won\'t be able to cancel an attack!</em><br/>';
|
755 | 753 | }
|
756 |
| - if (this.finalDecisionPartiallyTrapped) { |
757 |
| - moveMenu += '<em style="display:block;clear:both">You <strong>might</strong> be partially trapped, if you are still partially trapped then you might be unable to cancel attempting to attack!</em><br/>'; |
758 |
| - } |
759 |
| - if (this.finalDecisionPartiallyTrapping) { |
760 |
| - moveMenu += '<em style="display:block;clear:both">You <strong>might</strong> be partially trapping, if you are still partially trapping then you might be unable to cancel attempting to attack!</em><br/>'; |
| 754 | + if (curActive.maybeLocked) { |
| 755 | + moveMenu += '<em style="display:block;clear:both">You <strong>might</strong> be locked into a move.</em><br/>'; |
| 756 | + moveMenu += '<button class="button" name="chooseFight">Check for Lock</button> (You won\'t be able to switch if locked.)<br/>'; |
761 | 757 | }
|
762 | 758 | moveMenu += '<div style="clear:left"></div>';
|
763 | 759 |
|
|
1116 | 1112 | }
|
1117 | 1113 |
|
1118 | 1114 | this.choice = choiceText ? { waiting: true } : null;
|
1119 |
| - this.finalDecision = this.finalDecisionMove = this.finalDecisionSwitch = this.finalDecisionPartiallyTrapped = this.finalDecisionPartiallyTrapping = false; |
| 1115 | + this.finalDecision = this.finalDecisionMove = this.finalDecisionSwitch = false; |
1120 | 1116 | this.request = request;
|
1121 | 1117 | if (request.side) {
|
1122 | 1118 | this.updateSideLocation(request.side);
|
|
1304 | 1300 | this.choice.choices[this.choice.choices.length - 1] += ' ' + posString;
|
1305 | 1301 | this.chooseMove();
|
1306 | 1302 | },
|
| 1303 | + chooseFight: function () { |
| 1304 | + if (!this.choice) return; |
| 1305 | + this.tooltips.hideTooltip(); |
| 1306 | + |
| 1307 | + // TODO?: change this action |
| 1308 | + this.choice.choices.push('move fight'); |
| 1309 | + this.endChoice(); |
| 1310 | + }, |
1307 | 1311 | chooseShift: function () {
|
1308 | 1312 | if (!this.choice) return;
|
1309 | 1313 | this.tooltips.hideTooltip();
|
|
0 commit comments