mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 07:22:09 -05:00
Fix battle-disconnection detection logic
This commit is contained in:
parent
05fa18e9a6
commit
2cdbea7de5
|
|
@ -277,7 +277,7 @@ class BattleTimer {
|
|||
const player = this.battle[slot];
|
||||
const isConnected = player && player.active;
|
||||
|
||||
if (isConnected === (this.dcTicksLeft[slotNum] !== NOT_DISCONNECTED)) continue;
|
||||
if (!!isConnected === !!(this.dcTicksLeft[slotNum] === NOT_DISCONNECTED)) continue;
|
||||
|
||||
if (!isConnected) {
|
||||
// player has disconnected: don't wait longer than 6 ticks (1 minute)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user