diff --git a/js/client-battle.js b/js/client-battle.js index c68d5d935..9d3eadde5 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -543,6 +543,7 @@ for (var i = yourActive.length - 1; i >= 0; i--) { var pokemon = yourActive[i]; + var tooltipArgs = 'activepokemon|1|' + i; var disabled = false; if (moveTarget === 'adjacentAlly' || moveTarget === 'adjacentAllyOrSelf') { @@ -556,11 +557,12 @@ } else if (!pokemon || pokemon.fainted) { targetMenus[0] += ' '; } else { - targetMenus[0] += ' '; + targetMenus[0] += ' '; } } for (var i = 0; i < myActive.length; i++) { var pokemon = myActive[i]; + var tooltipArgs = 'activepokemon|0|' + i; var disabled = false; if (moveTarget === 'adjacentFoe') { @@ -575,7 +577,7 @@ } else if (!pokemon || pokemon.fainted) { targetMenus[1] += ' '; } else { - targetMenus[1] += ' '; + targetMenus[1] += ' '; } } @@ -605,10 +607,11 @@ if (move.id === 'Recharge') 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; if (moveData.disabled) { - movebuttons += ' '; @@ -623,7 +626,8 @@ var move = Dex.getMove(moveData.move); var moveType = this.tooltips.getMoveType(move, typeValueTracker)[0]; if (canZMove[i]) { - movebuttons += ' '; } else { movebuttons += ''; @@ -664,10 +668,11 @@ for (var i = 0; i < switchables.length; i++) { var pokemon = switchables[i]; pokemon.name = pokemon.ident.substr(4); + var tooltipArgs = 'switchpokemon|' + i; if (pokemon.fainted || i < this.battle.mySide.active.length || this.choice.switchFlags[i]) { - switchMenu += ' '; + switchMenu += ' '; } else { - switchMenu += ' '; + switchMenu += ' '; } } if (this.finalDecisionSwitch && this.battle.gen > 2) { @@ -713,12 +718,13 @@ var controls = '
'; for (var i = 0; i < myActive.length; i++) { var pokemon = this.battle.myPokemon[i]; + var tooltipArgs = 'switchpokemon|' + i; if (pokemon && !pokemon.fainted || this.choice.switchOutFlags[i]) { - controls += ' '; + controls += ' '; } else if (!pokemon) { controls += ' '; } else { - controls += ' '; + controls += ' '; } } controls += '
'; @@ -738,10 +744,11 @@ var switchMenu = ''; for (var i = 0; i < switchables.length; i++) { var pokemon = switchables[i]; + var tooltipArgs = 'switchpokemon|' + i; if (pokemon.fainted || i < this.battle.mySide.active.length || this.choice.switchFlags[i]) { - switchMenu += ' '; } @@ -776,10 +783,11 @@ for (var i = 0; i < maxIndex; i++) { var oIndex = this.choice.teamPreview[i] - 1; var pokemon = switchables[oIndex]; + var tooltipArgs = 'switchpokemon|' + oIndex; if (i < this.choice.done) { - switchMenu += ' '; + switchMenu += ' '; } else { - switchMenu += ' '; + switchMenu += ' '; } }