From 0518bbbc3ea9162baa63bbb7a3a880ec4b9752fc Mon Sep 17 00:00:00 2001 From: urkerab Date: Tue, 24 May 2016 16:57:32 +0100 Subject: [PATCH] Include the effect of Gravity in accuracy calculation (#716) --- js/client-battle-tooltips.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/client-battle-tooltips.js b/js/client-battle-tooltips.js index e45d983f4..52c6e00e9 100644 --- a/js/client-battle-tooltips.js +++ b/js/client-battle-tooltips.js @@ -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; };