mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-09 12:29:11 -05:00
Tooltips: Fix stat stage modifiers in Gens 1 and 2
This commit is contained in:
@@ -498,6 +498,7 @@ var BattleTooltips = (function () {
|
||||
if (pokemon.boosts[statName] > 0) {
|
||||
stats[statName] *= boostTable[pokemon.boosts[statName]];
|
||||
} else {
|
||||
if (this.battle.gen <= 2) boostTable = [1, 100 / 66, 2, 2.5, 100 / 33, 100 / 28, 4];
|
||||
stats[statName] /= boostTable[-pokemon.boosts[statName]];
|
||||
}
|
||||
stats[statName] = Math.floor(stats[statName]);
|
||||
|
||||
Reference in New Issue
Block a user