mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Stop showing stats for Transformed Pokémon
This commit is contained in:
@@ -953,7 +953,8 @@ class BattleTooltips {
|
||||
}
|
||||
|
||||
renderStats(clientPokemon: Pokemon | null, serverPokemon?: ServerPokemon | null, short?: boolean) {
|
||||
if (!serverPokemon) {
|
||||
const isTransformed = clientPokemon && clientPokemon.volatiles.transform;
|
||||
if (!serverPokemon || isTransformed) {
|
||||
if (!clientPokemon) throw new Error('Must pass either clientPokemon or serverPokemon');
|
||||
let [min, max] = this.getSpeedRange(clientPokemon);
|
||||
return '<p><small>Spe</small> ' + min + ' to ' + max + ' <small>(before items/abilities/modifiers)</small></p>';
|
||||
|
||||
Reference in New Issue
Block a user