mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Fix move accuracy text when modified by an ability (#714)
This commit is contained in:
committed by
Guangcong Luo
parent
9e21ff46a0
commit
058ff2eb62
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user