mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Fix opponent's speed tooltip in gen1/2 Random Battle (#839)
This commit is contained in:
@@ -767,7 +767,7 @@ var BattleTooltips = (function () {
|
||||
}
|
||||
|
||||
var iv = (this.battle.gen < 3) ? 30 : 31;
|
||||
var value = iv + (this.battle.tier.indexOf('Random Battle') >= 0 ? 21 : 63);
|
||||
var value = iv + ((this.battle.tier.indexOf('Random Battle') >= 0 && this.battle.gen >= 3) ? 21 : 63);
|
||||
var nature = (this.battle.tier.indexOf('Random Battle') >= 0 || this.battle.gen < 3) ? 1 : 1.1;
|
||||
return Math.floor(Math.floor(Math.floor(2 * baseSpe + value) * level / 100 + 5) * nature);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user