Tooltips: fix crash in accuracy calculation

This commit is contained in:
Ivo Julca
2016-05-25 00:38:33 -05:00
parent 9eb8d2184a
commit 0157050d63

View File

@@ -853,6 +853,7 @@ var BattleTooltips = (function () {
accuracyComment += ' (Boosted by Compound Eyes)';
}
for (var i = 0; i < pokemon.side.active.length; i++) {
if (!pokemon.side.active[i]) continue;
myPokemon = this.room.myPokemon[pokemon.side.active[i].slot];
ability = Tools.getAbility(myPokemon.baseAbility).name;
if (ability === 'Victory Star') {