Skip to content

Commit

Permalink
Do not show hidden abilities before gen 5
Browse files Browse the repository at this point in the history
  • Loading branch information
TheImmortal committed Dec 29, 2014
1 parent bfd37b9 commit ff45a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/client-battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ff45a1b

Please sign in to comment.