diff --git a/js/client-battle-tooltips.js b/js/client-battle-tooltips.js index e6de413ce..782b62ea0 100644 --- a/js/client-battle-tooltips.js +++ b/js/client-battle-tooltips.js @@ -414,10 +414,12 @@ var BattleTooltips = (function () { if (pokemonData) exacthp = ' (' + pokemonData.hp + '/' + pokemonData.maxhp + ')'; else if (pokemon.maxhp == 48) exacthp = ' (' + pokemon.hp + '/' + pokemon.maxhp + ' pixels)'; text += '

HP: ' + pokemon.hpDisplay() + exacthp + (pokemon.status ? ' ' + pokemon.status.toUpperCase() + '' : ''); - if (pokemon.status === 'tox') { - text += ' Next damage: ' + Math.floor(100 / 16) * Math.min(pokemon.statusData.toxicTurns, 15) + '%'; - } else if (pokemon.status === 'slp') { - text += ' Turns asleep: ' + pokemon.statusData.sleepTurns; + if (pokemon.statusData) { + if (pokemon.status === 'tox') { + text += ' Next damage: ' + Math.floor(100 / 16) * Math.min(pokemon.statusData.toxicTurns, 15) + '%'; + } else if (pokemon.status === 'slp') { + text += ' Turns asleep: ' + pokemon.statusData.sleepTurns; + } } text += '

'; }