diff --git a/js/search.js b/js/search.js index ddca5668d..15566c9fb 100644 --- a/js/search.js +++ b/js/search.js @@ -351,7 +351,11 @@ var unreleasedHidden = pokemon.unreleasedHidden; if (unreleasedHidden === 'Past' && (this.mod === 'natdex' || gen < 8)) unreleasedHidden = false; if (abilities['S']) { - buf += '' + (abilities['H'] || '') + '
' + abilities['S'] + '
'; + if (abilities['H']) { + buf += '' + (abilities['H'] || '') + '
(' + abilities['S'] + ')
'; + } else { + buf += '(' + abilities['S'] + ')'; + } } else if (abilities['H']) { buf += '' + abilities['H'] + ''; } else {