diff --git a/js/client-topbar.js b/js/client-topbar.js index 28007407d..b0a35e25e 100644 --- a/js/client-topbar.js +++ b/js/client-topbar.js @@ -502,7 +502,7 @@ if (window.Notification) { buf += '

'; } - buf +='

'; + buf += '

'; var tours = Dex.prefs('tournaments') || 'notify'; buf += '

'; diff --git a/src/battle-tooltips.ts b/src/battle-tooltips.ts index cff1ab887..64ae5dfb8 100644 --- a/src/battle-tooltips.ts +++ b/src/battle-tooltips.ts @@ -1579,7 +1579,8 @@ class BattleTooltips { abilityData.baseAbility = clientPokemon.baseAbility; } } else { - const template = this.battle.dex.getTemplate(clientPokemon.getSpecies() || (serverPokemon && serverPokemon.species) || ''); + const species = clientPokemon.getSpecies() || (serverPokemon && serverPokemon.species) || ''; + const template = this.battle.dex.getTemplate(species); if (template.exists && template.abilities) { abilityData.possibilities = [template.abilities['0']]; if (template.abilities['1']) abilityData.possibilities.push(template.abilities['1']);