Fix move accuracy text when modified by an ability (#714)

This commit is contained in:
luiscarloscb
2016-05-23 22:08:15 -04:00
committed by Guangcong Luo
parent 9e21ff46a0
commit 058ff2eb62

View File

@@ -810,7 +810,7 @@ var BattleTooltips = (function () {
// Gets the current accuracy for a move.
BattleTooltips.prototype.getMoveAccuracy = function (move, pokemon) {
var myPokemon = this.room.myPokemon[pokemon.slot];
var ability = Tools.getAbility(myPokemon.baseAbility).name;
var ability = Tools.getAbility(pokemon.ability || myPokemon.baseAbility).name;
var accuracy = move.accuracy;
if (this.battle.gen < 6) {
var table = BattleTeambuilderTable['gen' + this.battle.gen];