mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-20 17:14:40 -05:00
Tooltips: Fix small display issue in Gen 2 (#1933)
This commit is contained in:
@@ -864,14 +864,16 @@ class BattleTooltips {
|
||||
if (item) itemText = '<small>Item:</small> ' + item + itemEffect;
|
||||
}
|
||||
|
||||
text += '<p>';
|
||||
text += abilityText;
|
||||
if (itemText) {
|
||||
// ability/item on one line for your own switch tooltips, two lines everywhere else
|
||||
text += (!isActive && serverPokemon ? ' / ' : '</p><p>');
|
||||
if (abilityText || itemText) {
|
||||
text += '<p>';
|
||||
text += abilityText;
|
||||
if (abilityText && itemText) {
|
||||
// ability/item on one line for your own switch tooltips, two lines everywhere else
|
||||
text += (!isActive && serverPokemon ? ' / ' : '</p><p>');
|
||||
}
|
||||
text += itemText;
|
||||
text += '</p>';
|
||||
}
|
||||
text += '</p>';
|
||||
|
||||
text += this.renderStats(clientPokemon, serverPokemon, !isActive);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user