From ff45a1ba94fa10e7528e32d31f26897cf04d29aa Mon Sep 17 00:00:00 2001 From: The Immortal Date: Mon, 29 Dec 2014 21:36:30 +0400 Subject: [PATCH] Do not show hidden abilities before gen 5 --- js/client-battle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client-battle.js b/js/client-battle.js index 85248245c..0a52a42d2 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -1017,7 +1017,7 @@ if (template.abilities) { text += '

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 += '

'; } } else if (pokemon.ability) {