Fix Gen 3 status move listing in teambuilder

This commit is contained in:
Guangcong Luo 2019-02-20 19:27:03 -06:00
parent f782ba807c
commit 55506a8881

View File

@ -1610,7 +1610,7 @@
var type = move.type;
if (table && id in table.overrideMoveType) type = table.overrideMoveType[id];
buf += Dex.getTypeIcon(type);
var category = this.gen > 3 ? move.category : Dex.getGen3Category(type);
var category = this.gen > 3 || move.category === 'Status' ? move.category : Dex.getGen3Category(type);
buf += '<img src="' + Dex.resourcePrefix + 'sprites/categories/' + category + '.png" alt="' + category + '" height="14" width="32" />';
buf += '</span> ';