Show event abilities in battle tooltips (#865)

This commit is contained in:
asgdf
2017-02-14 18:27:50 +01:00
committed by Guangcong Luo
parent fa031bb239
commit 1f65d1da5b

View File

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