mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-20 22:18:18 -05:00
Fix crash in room-battle
This commit is contained in:
parent
d91f56b443
commit
4cdba33609
|
|
@ -234,7 +234,7 @@ class BattleTimer {
|
|||
const player = this.battle[slot];
|
||||
|
||||
let perTurnTicks = this.settings.perTurnTicks;
|
||||
if (this.timer.accelerate && perTurnTicks) {
|
||||
if (this.settings.accelerate && perTurnTicks) {
|
||||
// after turn 100ish: 15s/turn -> 10s/turn
|
||||
if (this.battle.requestCount > 200) {
|
||||
perTurnTicks--;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user