Do not show hidden abilities before gen 5

This commit is contained in:
The Immortal
2014-12-29 21:36:30 +04:00
parent bfd37b97fa
commit ff45a1ba94

View File

@@ -1017,7 +1017,7 @@
if (template.abilities) {
text += '<p>Possible abilities: ' + Tools.getAbility(template.abilities['0']).name;
if (template.abilities['1']) text += ', ' + Tools.getAbility(template.abilities['1']).name;
if (template.abilities['H']) text += ', ' + Tools.getAbility(template.abilities['H']).name;
if (this.battle.gen > 4 && template.abilities['H']) text += ', ' + Tools.getAbility(template.abilities['H']).name;
text += '</p>';
}
} else if (pokemon.ability) {