mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Include the effect of Gravity in accuracy calculation (#716)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user