Include the effect of Gravity in accuracy calculation (#716)

This commit is contained in:
urkerab
2016-05-24 16:57:32 +01:00
committed by Guangcong Luo
parent 11d46853b9
commit 0518bbbc3e

View File

@@ -864,6 +864,10 @@ var BattleTooltips = (function () {
accuracy *= 1.1;
accuracyComment += ' (Boosted by Wide Lens)';
}
if (this.battle.hasPseudoWeather('Gravity')) {
accuracy *= 5 / 3;
accuracyComment += ' (Boosted by Gravity)';
}
return Math.round(accuracy) + accuracyComment;
};