From 058ff2eb62e592fe3192c8ebd3445fb32791c6c5 Mon Sep 17 00:00:00 2001 From: luiscarloscb Date: Mon, 23 May 2016 22:08:15 -0400 Subject: [PATCH] Fix move accuracy text when modified by an ability (#714) --- js/client-battle-tooltips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client-battle-tooltips.js b/js/client-battle-tooltips.js index 8b0f5c92d..9568b0023 100644 --- a/js/client-battle-tooltips.js +++ b/js/client-battle-tooltips.js @@ -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];