mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Merge 4229a950ea into 10f8967023
This commit is contained in:
commit
199ba1392d
|
|
@ -33,7 +33,7 @@ export class ModifiableValue {
|
|||
this.serverPokemon = serverPokemon;
|
||||
|
||||
this.itemName = this.battle.dex.items.get(serverPokemon.item).name;
|
||||
const ability = serverPokemon.ability || pokemon?.ability || serverPokemon.baseAbility;
|
||||
const ability = pokemon?.ability || serverPokemon.ability || serverPokemon.baseAbility;
|
||||
this.abilityName = this.battle.dex.abilities.get(ability).name;
|
||||
this.weatherName = this.battle.dex.moves.get(battle.weather).exists ?
|
||||
this.battle.dex.moves.get(battle.weather).name : this.battle.dex.abilities.get(battle.weather).name;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user