mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-02 22:09:20 -05:00
Properly calculate DVs when calculating stats in Gen1/2
This commit is contained in:
parent
2ecd45e900
commit
c091da039b
|
|
@ -2826,6 +2826,7 @@
|
|||
|
||||
var baseStat = template.baseStats[stat];
|
||||
var iv = (set.ivs[stat] || 0);
|
||||
if (this.curTeam.gen <= 2) iv &= 30;
|
||||
var ev = set.evs[stat];
|
||||
if (evOverride !== undefined) ev = evOverride;
|
||||
if (ev === undefined) ev = (this.curTeam.gen > 2 ? 0 : 252);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user