mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Fix crash in PSdex tier display
This commit is contained in:
@@ -293,8 +293,9 @@
|
||||
var buf = '<li class="result"><a' + attrs + ' data-entry="pokemon|' + BattleLog.escapeHTML(pokemon.name) + '">';
|
||||
|
||||
// number
|
||||
var tier = this.engine ? this.engine.getTier(pokemon) : pokemon.num;
|
||||
// buf += '<span class="col numcol">' + (pokemon.num >= 0 ? pokemon.num : 'CAP') + '</span> ';
|
||||
buf += '<span class="col numcol">' + this.engine.getTier(pokemon) + '</span> ';
|
||||
buf += '<span class="col numcol">' + tier + '</span> ';
|
||||
|
||||
// icon
|
||||
buf += '<span class="col iconcol">';
|
||||
|
||||
Reference in New Issue
Block a user