diff --git a/src/battle-tooltips.ts b/src/battle-tooltips.ts index 7e9abe516..99d421236 100644 --- a/src/battle-tooltips.ts +++ b/src/battle-tooltips.ts @@ -864,14 +864,16 @@ class BattleTooltips { if (item) itemText = 'Item: ' + item + itemEffect; } - text += '

'; - text += abilityText; - if (itemText) { - // ability/item on one line for your own switch tooltips, two lines everywhere else - text += (!isActive && serverPokemon ? ' / ' : '

'); + if (abilityText || itemText) { + text += '

'; + text += abilityText; + if (abilityText && itemText) { + // ability/item on one line for your own switch tooltips, two lines everywhere else + text += (!isActive && serverPokemon ? ' / ' : '

'); + } text += itemText; + text += '

'; } - text += '

'; text += this.renderStats(clientPokemon, serverPokemon, !isActive);