Fix tooltips for switchables after rejoining (#1683)

This commit is contained in:
MacChaeger 2020-11-26 04:01:32 -06:00 committed by GitHub
parent 87c6e91f7b
commit c786e2eb3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,7 +319,7 @@ class BattleTooltips {
case 'switchpokemon': { // switchpokemon|POKEMON
// mouse over switchable pokemon
// serverPokemon definitely exists, sidePokemon maybe
let side = this.battle.sides[0];
let side = this.battle.mySide;
let activeIndex = parseInt(args[1], 10);
let pokemon = null;
if (activeIndex < side.active.length) {