Skip to content

Commit

Permalink
Put S abilities in parentheses in /data
Browse files Browse the repository at this point in the history
  • Loading branch information
asgdf committed Mar 2, 2019
1 parent 2bde988 commit e100207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1533,12 +1533,12 @@ Chat.getDataPokemonHTML = function (template, gen = 7, tier = '') {
buf += '<span class="col abilitycol">' + template.abilities['0'] + '</span>';
}
if (template.abilities['H'] && template.abilities['S']) {
buf += '<span class="col twoabilitycol' + (template.unreleasedHidden ? ' unreleasedhacol' : '') + '"><em>' + template.abilities['H'] + '<br />' + template.abilities['S'] + '</em></span>';
buf += '<span class="col twoabilitycol' + (template.unreleasedHidden ? ' unreleasedhacol' : '') + '"><em>' + template.abilities['H'] + '</em><br />(' + template.abilities['S'] + ')</span>';
} else if (template.abilities['H']) {
buf += '<span class="col abilitycol' + (template.unreleasedHidden ? ' unreleasedhacol' : '') + '"><em>' + template.abilities['H'] + '</em></span>';
} else if (template.abilities['S']) {
// special case for Zygarde
buf += '<span class="col abilitycol"><em>' + template.abilities['S'] + '</em></span>';
buf += '<span class="col abilitycol">(' + template.abilities['S'] + ')</span>';
} else {
buf += '<span class="col abilitycol"></span>';
}
Expand Down

0 comments on commit e100207

Please sign in to comment.