mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 06:43:02 -05:00
Battles: Fix crash relating to getPokemon
_Some_ past gens apparently don't specify slots for active pokemon sometimes...
This commit is contained in:
@@ -5811,7 +5811,7 @@ var Battle = (function () {
|
||||
if (!details) {
|
||||
if (siden < 0) return null;
|
||||
if (this.sides[siden].active[slot]) return this.sides[siden].active[slot];
|
||||
isInactive = true;
|
||||
if (slot >= 0) isInactive = true;
|
||||
}
|
||||
|
||||
var searchid = '';
|
||||
|
||||
Reference in New Issue
Block a user