mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 07:57:01 -05:00
Fix tooltips for switchables after rejoining (#1683)
This commit is contained in:
parent
87c6e91f7b
commit
c786e2eb3c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user