From 77bcaf4e33b0a79fd4e52a85074896f7ccbc0693 Mon Sep 17 00:00:00 2001 From: TheSupervillain <85589744+TheSupervillain@users.noreply.github.com> Date: Sun, 11 Jul 2021 21:58:51 -0400 Subject: [PATCH] Ignore 10000 speed upper limit in Custom Game (#8392) --- sim/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/pokemon.ts b/sim/pokemon.ts index 455fc90eff..544ff93f58 100644 --- a/sim/pokemon.ts +++ b/sim/pokemon.ts @@ -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; }