mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Fix crash in tooltips
This commit is contained in:
@@ -269,8 +269,9 @@ class BattleTooltips {
|
||||
case 'zmove': { // move|MOVE|ACTIVEPOKEMON
|
||||
let move = this.battle.dex.getMove(args[1]);
|
||||
let index = parseInt(args[2], 10);
|
||||
let pokemon = this.battle.mySide.active[index]!;
|
||||
let pokemon = this.battle.mySide.active[index];
|
||||
let serverPokemon = this.battle.myPokemon![index];
|
||||
if (!pokemon) return false;
|
||||
buf = this.showMoveTooltip(move, type === 'zmove', pokemon, serverPokemon);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user