Ignore 10000 speed upper limit in Custom Game (#8392)

This commit is contained in:
TheSupervillain
2021-07-11 21:58:51 -04:00
committed by GitHub
parent cdb910be4c
commit 77bcaf4e33

View File

@@ -562,7 +562,7 @@ export class Pokemon {
stat = this.battle.runEvent('Modify' + statTable[statName], this, null, null, stat);
}
if (statName === 'spe' && stat > 10000) stat = 10000;
if (statName === 'spe' && stat > 10000 && !this.battle.format.battle?.trunc) stat = 10000;
return stat;
}